Re: Session problem

From: Date: Thu, 13 Jul 2000 03:22:34 +0000
Subject: Re: Session problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6375@lists.php.net to get a copy of this message
I found it interesting that on 7/12/00 11:01 PM Szii said: > When trying your site, the first URL is > http://216.235.251.8/login.phtml?SID > > Now, since you have the if ($login) clause, you don't have a > session_start() for > your first run, and therefore no SID. > > Take out ALL of the if($login) stuff, and minimize your code until you get > something > that works. You'll have to strip it down (even further) since no one else > seems to have > this problem. Drill down, layer by layer. The only thing I don't understand is that the other code is simply echo statements, they don't do anything at all, The core of theh code is: session_start() Session_register() and the SID in the url. That's the core, everything else is simply echo statements to debug the problem. I dont' know what else I can cut out!, Sure, maybe the if ($login) but the orignal script didn't have the if($login) and I had the same problems except the session started at first. Well, I did have the if($login) but the session was started outside of that. The reason why is because I didn't want to register blank values for the username and pass (in this example script). But the session was started. I mean, when I started this bloody thing it was like three lines long. I added all this code because I noticed on the server all these session files being created and my session variables not carrying over. I don't know what else to do here. I am at a loss. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

« previous php.general (#6375) next »