Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Session handling


Message #1 by "Ganesh Danej" <gmdanej@r...> on Mon, 19 Aug 2002 09:13:30
> 
> How R U retrieving the values stored in session please send the code.

First off, spelling out "are you" is only 5 extra keystrokes and is not as
infernally annoying. Thank you.


Secondarily, to the first poster:

-------------------------------------
This is the way by which I have handle the sessions.

Session_Start();

Session_Register("UserIN");

$UserIN="some value";

--------------------------------------


I am pretty sure this is NOT the best way to do your script.  What you are
essentially trusting, at this point, is that "$UserIN" is going to be a
global variable.  I would probably modify it so you access it directly (
$_SESSION['UserIN'] ).

I could be wrong of course...


regards,
dan

  Return to Index