Dear Patrick,
PHPSlash uses the old-style PHPLIB framework for session management (which
is a wrapper around PHP4 new-style sessions). Session variables are in the
global namespace.
However, PHPSlash has only one session variable, and that's $auth. It's an
object of a class extending PHPLIB's auth class. If you want the username,
look in the array $auth->auth.
Other information about the user can be found in the database. What else
are you looking for?
Yours,
Matthew Leingang
On 4/2/04 7:41 PM, "patrickrashford-VsqqI1RANlHk1uMJSBkQmQ@xxxxxxxxxxxxxxxx"
<patrickrashford-VsqqI1RANlHk1uMJSBkQmQ@xxxxxxxxxxxxxxxx> wrote:
> Hi, I'm a bit new to PHP and sessions, and I can't figure out how to access
> the session variables (like username) in PHPSlash. I can get the session id
> and I've looked through the session file in /tmp , so I know that a session
> exists, but I just can't access the variables. Can someone please tell me how
> to extract this info? Thanks
>
> __________________________________________________________________
> Introducing the New Netscape Internet Service.
> Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>
> Netscape. Just the Net You Need.
>
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those annoying pop-ups.
> Download now at http://channels.netscape.com/ns/search/install.jsp
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> phpslash-users mailing list
> phpslash-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpslash-users
>
--
Matthew Leingang
Preceptor in Mathematics, Harvard University
leingang-c2Vpf+SSmYbWs/AcZQh2Cw@xxxxxxxxxxxxxxxx
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
|