PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
retrieving user name of logged-in user on a new page

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
qmqmqm



Joined: 06 Mar 2009
Posts: 17

PostPosted: Sun Mar 08, 2009 11:03 pm    Post subject: retrieving user name of logged-in user on a new page Reply with quote

Hi everyone

If I open a new web page after authenticating using PEAR::Auth class in a php file,
is there a way to retrieve the user name in the new page?

Thanks,

Tom
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1230

PostPosted: Sun Mar 08, 2009 11:21 pm    Post subject: Re: retrieving user name of logged-in user on a new page Reply with quote

qmqmqm wrote:
If I open a new web page after authenticating using PEAR::Auth class in a php file,
is there a way to retrieve the user name in the new page?


Yes, RTFM: http://pear.php.net/manual/en/package.authentication.auth.auth.getusername.php
Back to top
View user's profile Send private message
qmqmqm



Joined: 06 Mar 2009
Posts: 17

PostPosted: Sun Mar 08, 2009 11:32 pm    Post subject: Re: retrieving user name of logged-in user on a new page Reply with quote

mark wrote:
qmqmqm wrote:
If I open a new web page after authenticating using PEAR::Auth class in a php file,
is there a way to retrieve the user name in the new page?


Yes, RTFM: http://pear.php.net/manual/en/package.authentication.auth.auth.getusername.php


Thanks Mark! I did read that manual but I did not know I could use it on a different webpage.

lol Smile

Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement