dionak
08-04-2006, 05:41 PM
I'm creating a website that includes Vbulletin, MediaWiki and Movable Type. So I have a custom user management system kind of 'sitting on top' of these applications written in Perl...basically making subrequests to the application, parsing the cookies out of the subrequest and setting them in the user's browser session.
I have Vbulletin pretty well squared away if there is an entry in the vb_session table.
I'm creating the users fine and all of the cookies are set, except when an entry in the vb_sessions table doesn't exist for the user, I'm missing the bbsessionhash cookie. This prevents the login from working.
Once a user logs into Vbulletin for the first time (manually), this entry in vb_session is created for the user id, my code retrieves the session and the user is logged in.
I'm trying to figure out how to create this entry. If anyone has any information on creating the user sessions or user management, I could really use some input.
I'm curious as to what is happening when a user logs in and is show the 'logging in' screen. The session id seems to be updated at that point, or something else is going on...not sure. I also want to be sure I'm handling the sessions correctly and not causing unneccessary entries in the session table.
Also, after reading the code for Vbulletin, the API docs and the manual, I am still lacking the understanding of how the sessionhash and idhash are calculated.
Could anyone point me in a direction?
Thanks!
I have Vbulletin pretty well squared away if there is an entry in the vb_session table.
I'm creating the users fine and all of the cookies are set, except when an entry in the vb_sessions table doesn't exist for the user, I'm missing the bbsessionhash cookie. This prevents the login from working.
Once a user logs into Vbulletin for the first time (manually), this entry in vb_session is created for the user id, my code retrieves the session and the user is logged in.
I'm trying to figure out how to create this entry. If anyone has any information on creating the user sessions or user management, I could really use some input.
I'm curious as to what is happening when a user logs in and is show the 'logging in' screen. The session id seems to be updated at that point, or something else is going on...not sure. I also want to be sure I'm handling the sessions correctly and not causing unneccessary entries in the session table.
Also, after reading the code for Vbulletin, the API docs and the manual, I am still lacking the understanding of how the sessionhash and idhash are calculated.
Could anyone point me in a direction?
Thanks!