logo       

Re: Newbie session problem: msg#00001

Subject: Re: Newbie session problem
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe