Adobe Dreamweaver Forums



Last 10 THreads :         RoboHelp hanging (Last Post : Benjaminson - Replies : 2 - Views : 3 )           »          Insert "Search" in a Topic (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          logging all unhandled errors (Last Post : TavoGM - Replies : 1 - Views : 2 )           »          outputting bitmap path from xml file (Last Post : Laura MS - Replies : 0 - Views : 1 )           »          outputting bitmap path from xml file (Last Post : Laura MS - Replies : 0 - Views : 1 )           »          outputting bitmap path from xml file (Last Post : Laura MS - Replies : 0 - Views : 1 )           »          Drop Down Sub Buttons (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          A question about using get and set methods (Last Post : myIP - Replies : 2 - Views : 3 )           »          Tilelist Item Renderer (Last Post : c4kandy - Replies : 0 - Views : 1 )           »          Special Message Board creation (Last Post : Erik eDragon - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Application Development
 
Tags: , , , , ,



Reply
  #1 (permalink)  
Old 08-07-2008, 11:03 AM
dmx-moteur
 
Posts: n/a
Diggs:
Default Session issues on remote host with user authentification

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...


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2008, 01:19 PM
dmx-moteur
 
Posts: n/a
Diggs:
Default Re: Session issues on remote host with user authentification

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...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk