1
netslayer
How to access xoops session data?
  • 2004/8/23 3:25

  • netslayer

  • Just popping in

  • Posts: 4

  • Since: 2004/8/23


I'm designing some flash to work with XOOPS and I need to know where/how I can retrieve the following member information. Basically whenever someone logs in I need their: username and rank.

1. Where can I find this data? is it in a php session stored in the XOOPS database?

2. How can I retrieve it?

Thanks for your time,
Chris

2
Dave_L
Re: How to access xoops session data?
  • 2004/8/23 10:27

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Example:

global $xoopsUser// needed only if inside a function

if (is_object($xoopsUser)) {
   
$username $xoopsUser->getVar('uname');
   
$rank     $xoopsUser->getVar('rank');
} else {
   
$username '(guest)';
   
$rank     '(n/a)';
}

echo 
"Username: $username  Rank: $rank";


Login

Who's Online

331 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 331


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits