If I want to add a new var to the user session just to be stored for a couple of pages, how do I do this?
Currently I'm using $_SESSION['var_name'] but there has to be a phpBB method for doing this. I need to set the value, get the value, and delete the key. Any ideas? I keep searching phpBB docs but no luck so far.
phpBB way of adding session vars
- MasterZ
- Member
- Posts: 87
- Joined: 07 Jul 2007, 23:46
- Real name: Jon
- Location: Colorado Springs, CO
- Contact:
phpBB way of adding session vars
My MODS:
About Me: -
About Me: -
Re: phpBB way of adding session vars
To be honest, it's either stored in a db table or cached..
- MasterZ
- Member
- Posts: 87
- Joined: 07 Jul 2007, 23:46
- Real name: Jon
- Location: Colorado Springs, CO
- Contact:
Re: phpBB way of adding session vars
Storing some information for the openid authentication before the user gets sent to the openid provider.
So do I need to create a new table to store information then? Or just leave the session_start() in there for now
If I do store the information in a new table I need some way to track the session id to make sure I pull out information from the same session that it gets saved to. How do I get the session id?
Or does someone else have a better way to do this?
So do I need to create a new table to store information then? Or just leave the session_start() in there for now
If I do store the information in a new table I need some way to track the session id to make sure I pull out information from the same session that it gets saved to. How do I get the session id?
Or does someone else have a better way to do this?
My MODS:
About Me: -
About Me: -
- MasterZ
- Member
- Posts: 87
- Joined: 07 Jul 2007, 23:46
- Real name: Jon
- Location: Colorado Springs, CO
- Contact:
Re: phpBB way of adding session vars
Since this is going to require an extra table to be created in the DB I think I'm just going to leave it as is for now. If the MOD validation team complains then I will make the new table.
My MODS:
About Me: -
About Me: -
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 19 guests