[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phpslash
Subject:    Re: [phpslash-users] Newbie session problem
From:       Matthew Leingang <leingang () math ! harvard ! edu>
Date:       2004-04-05 11:17:15
Message-ID: BC96B87B.4576%leingang () math ! harvard ! edu
[Download RAW message or body]

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@netscape.net"
<patrickrashford@netscape.net> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpslash-users
> 

-- 
Matthew Leingang
Preceptor in Mathematics, Harvard University
leingang@math.harvard.edu



-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpslash-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic