The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all, looking for a little help with vB sessions.
Firstly, it seems to use its own session system, non PHP standard, just wondering how to use it. If I have a script someaddon.php, how whould I go about using the vb sessions to see if users have been logged in etc? Any tips or links, is it just a matter of using the inbuilt functions? Help... the code is far too messey and scary to work out lol ![]() Thanks to everyone who replies, Taz |
#2
|
|||
|
|||
![]()
All you have to do is add:
PHP Code:
|
#3
|
|||
|
|||
![]()
hmmm, im actually developing an image gallery script that can run either standalone or with vB.
Now, including a vB global.php could be very over the top, is there any other way, without the bloat? Taz |
#4
|
|||
|
|||
![]()
I'm not sure but try including sessions.php. Hopefully that'll create a session, but also IIRC it needs a database connection which can be tedious to create with DB_Mysql_vb (or whatever it's called).
|
#5
|
|||
|
|||
![]()
well, can you clarify something for me.
Does vb use sessions, cookies or both? Ie. i know its not using pure sessions with session_start() however there is a sessions table in the db and it can be set to move sessions through the query string. Alternatively, if it uses cookies, they can be accessed manually as long as you're in the same domain, how would I go about doing this? Cheers Taz |
#6
|
|||
|
|||
![]()
It uses sessions if a user has cookies off in his user CP or if the user is a guest.
Check out http://www.php.net/cookie for how to use cookies. |
#7
|
|||
|
|||
![]()
cheers filburt.
will look into reading the vbulletin cookies Taz |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|