NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions

Adam Fields fields at surgam.net
Tue Jan 28 16:59:15 EST 2003


On Tue, Jan 28, 2003 at 04:49:06PM -0500, e_dave wrote:
> OK, but all I did was enter the usual  META TAG info.  So I take it you 
> might be talking about something else.
> 
> What is happening is that on the page "frontpage.php" one enters their 
> user name and password.
> Then the same page is called to verify the user and create a session 
> with the user's info.
> Now using the header() function, frontpage.php is called once more with 
> the session id on the end of the URL.  And when I try to access the 
> user's info such as
> if (isset($HTTP_SESSION_VARS['userID'])){
> 	echo $HTTP_SESSION_VARS['userName'];
> }
>   I get nothing unless I say start_session() before the if statement.  
> However doing that triggers the error I mentioned earlier.

Send the text of the page up until the if statement above.

-- 
				- Adam

-----
Adam Fields, Managing Partner, fields at surgam.net
Surgam, Inc. is a technology consulting firm with strong background in
delivering scalable and robust enterprise web and IT applications.
http://www.adamfields.com



More information about the talk mailing list