$author = "Stewart" ;
> 
> On Wednesday, March 26, 2003, at 02:40 PM, Simon Bryan wrote:
> 
> >Hi al,
> >I have the following code - downloaded from ZEND - that checks a users 
> >name
> >and password against our NT server, the username is then stored in 
> >$USER.
> >How can i then make the contents of that value available to other php 
> >pages?
> 
> off the top of my head i'd look at storing the uname in a cookie, or 
> session variable if you're using them. I _think_ that's about the only 
> way you can make vars persist across pages...

the only way to avoid spoofing of the username is to use sessions. this
stores the variable on the server and sets a cookie to associate the user
with the session.

http://www.php.net/manual/en/ref.session.php

marty

--
"Every problem in the world can be fixed with either flowers,
   or duct tape,
     or both." [1]

- illuzion (David Millington)

[1] - http://www.kuro5hin.org/comments/2003/3/15/175156/106/43#43
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to