1
Bowromir
Session Table
  • 2005/8/30 11:02

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Hello,

I've got this table named xoops_sessions:

sess_id
0b862c97b21d0a8e725eb253e0d31407

sess_updated
1124888419

sess_ip
127.0.0.1

sess_data:
xoopsUserId|s:1:"1";xoopsUserGroups|a:2:{i:0;s:1:"1";i:1;s:1:"2";}xoopsU

I'm trying to get an userID from the sess_data column by using the unserialize() function but this doesn't work. Does anyone know how I can get an ID from this column? Wich PHP function do I have to use? I am using XOOPS 2.0.13.1

Thanks,

Bowromir

2
Mithrandir
Re: Session Table

$_SESSION['xoopsUserId'] should hold it...
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
Bowromir
Re: Session Table
  • 2005/8/30 11:16

  • Bowromir

  • Just popping in

  • Posts: 19

  • Since: 2004/9/8 2


Thank you very much. It works now :) .

Login

Who's Online

376 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 376


more...

Donat-O-Meter

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

Latest GitHub Commits