The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Understanding vb3 Sessions
I am building a site that Vb3 is just one part of the big puzzle. Through reading threads on this site and other places, I have managed to create my system where registration happens outside vbulletin, and creates accounts in vbulletin, posts can be made to vbulletin outside of it. Vb3 is the primary user account system though, and I base everything off of it for my primary user base, but don't use it directly.
I designed it so that I can grow w/ vb3 modifications, but at the same time I am not dependent upon it for everything, so for example, I don't use Vb3 global files in all my scripts, cause it's not needed except when required by a script directly interfacing with Vb3. ISSUE: My system works great for users who login and use cookies, whether inside or outside the vb software. My question is... how does Vb3 use session handling for users w/o bbuserid and bbpassword cookies stored. I'd like to be able to peak at this session information when they are on other areas of the site to add that information to my $_SESSION array for the rest of my site's systems. I'd also like for people to be able to login outside of VB3 and I'd like to be able to create the necessary session information for VB3 to finish up this seamless experience. Any hints or ideas would be helpful. |
#2
|
||||
|
||||
I might actually figure this one out myself... if you login and don't choose "remember" me, then it does create a session cookie called "sessionhash" which I assume is related to the session table... so there probably is a fucntion for that somewhere that I can decode and complete what I need to.
Anyhow, if anyone has any pointers, I am still open... but progress is being made. |
#3
|
||||
|
||||
PHP Code:
|
#4
|
||||
|
||||
I am interested in this as well. I'd like to keep the session alive as well for people with cookies disabled.
I have a bunch of forms on my site and I would like to pass the sessionhash around with the forms but I don't fully understand how vb3 uses the session hash. |
#5
|
|||
|
|||
In the past I have used...
setcookie("bbuserid","-1", time()-(3600 *24*7*365),"/","domain.com"); setcookie("bbpassword","-1", time()-(3600 *24*7*365),"/","domain.com"); In VB3 this dosent work, do I just change it to: setcookie("bbuserid","-1", time()-(3600 *24*7*365),"/","domain.com"); setcookie("bbpassword","-1", time()-(3600 *24*7*365),"/","domain.com",LICENCENO); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|