![]() |
![]() |
||||||
|
|||||||
| Tags: authentification, host, issues, remote, session, user |
![]() |
|
|||
|
I build an application with Dreamweaver CS3 containing a private space
where users have to login. It runs perfectly on my local host (using PHP 4.3.10) : users can login with any trouble ; but user authentification doesn't work on the remote host (using PHP 4.4.0). I use the code generated by Dreamweaver for user athentification, no change, no specific dev. I have the intuition that there is a problem with the storage of the session variables on the server. Here is my local host parameters : session.save_path : C:\PROGRA~1\EASYPH~1\\tmp\ session.serialize_handler : php session.use_cookies : On session.use_only_cookies : Off session.use_trans_sid : Off Here is my remote host parameters : session.save_path : /tmp session.serialize_handler : php session.use_cookies : On session.use_only_cookies : Off session.use_trans_sid : On Do you have an idea how i can solve this problem ? I noticed that on my local host the session.save_path is the physical directory and on my remote host the session.save_path is a virtual directory... |
| Sponsored Links |
|
|||
|
I did some tests on my servers to discover the cause of this issue.
I put the regular login page on the both (local and remote) servers but i changed the $MM_redirectLoginSuccess page in both with the following page : <?php if (!isset($_SESSION)) { session_start(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>New Page</title> </head> <body> <h1>Coucou ! Ca marche !</h1> <p><? echo $_SESSION['MM_Username']; ?></p> <p><? echo $_SESSION['MM_UserGroup']; ?></p> </body> </html> On my local server the $_SESSION['MM_UserGroup'] is correctly displayed on the redirect page, on my remote server $_SESSION['MM_UserGroup'] is empty !!! Do you have any idea ? I would be very gratefull... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise