If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > PHP Session inconsistant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-04, 21:59
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 533
PHP Session inconsistant

I have a Login process I've been working on. If i run it on my hosted server under Linux/Apache/PHP 4 it works fine. When run on localhost with Win XP/Apache/PHP 5, it drops the session between the login.php and the menu.php page. I've read about session_start windows problems but can't pinpoint why this will not work on windows. I'm using the following process steps.

index.html - This has form for user and password sign-on, form post values sent to the login file.
login.php - starts session sets userid and permission value to session values.
menu.php - if session isset shows the menu for user

Now if I skip the index.html and manually insert username and pass then it maintians the session to the menu.php but started from the index.html it drops the session between login and menu?

I can force it to work by using SID with string for the menu page:
header("Location:menu.php?" . SID);
but header("Location:menu.php"); by itself does not pass the session on.

Any ideas on why this works different or best way to make code work for both linux/apache and windows/apache? I guess I could just pass SID with the string but would prefer not to show the SID in the url.
.

Edited 11/20/2004
Apparently Zone Alarm Pro causes this problem. If I shut off ZA then the sessions work, work better. It doesn't effect the remote server just //Localhost. I changed the settings in ZA for ad blocking, Header and Session blocking and it still caused the problem. Shutting down ZA solved it and also allowed the Session ID to be hidden. Zone Alarm should fix this problem.

.
__________________
~

Bill

Last edited by savbill; 11-20-04 at 16:18.
Reply With Quote
  #2 (permalink)  
Old 11-27-04, 06:18
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
re-session problem

yes , you were right ,
session is either implemented as passing a SID or setting a COOKIE on the client side..

The zonealarm would have prevented the cookie from being set ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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