The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there a way I can intercept a successful login; so that before the redirecting screen i can quickly pop to another page and then carry on to the redirect screen??
|
#2
|
|||
|
|||
![]()
Do you just want it when they login, or when someone with cookies visits your site and is "automatically" logged in? (I currently have a plugin that notifies me when anyone logs into admincp or modcp, works really well)
|
#3
|
|||
|
|||
![]()
Hi,
What i want to acheive is that when someone logs into the forum it sets an ASP session variable so my main site knows someone has logged in too. The only way i thought this was possible, was before the redirection screen is displayed, fire an asp page off, then fire the redirection page ???? but sorry YES, i want it for when someone is automatically logged in too! |
#4
|
|||
|
|||
![]()
If your asp page is in the same domain and your cookie path/domain is set properly you wont need to do what you're suggesting, however I strongly suggest you reconsider using ASP for extensions unless you know what you're doing.
|
#5
|
|||
|
|||
![]()
Yes it is in the same domain and I can see the cookies from within my ASP page, does the glbals include set the sessions if it finds the cookies?
The whole main site is in ASP, and I only have until the 16th to get this done; so I can't rewrite it in PHP, besides i am not too hot on PHP either.. Just need to make my ASP app aware that a login has occured, I thought i had sussed it with a hidden iFrame, but obviously this renders after the main page which is too late... I am going to Fail!!!!! |
#6
|
|||
|
|||
![]()
There should be a cookie called <cookieprefix>session, or the like containing a sessionhash that you can match to the vbulletin session table.
No need to touch php. |
#7
|
|||
|
|||
![]()
Oh, so there is a cookie that will tell me the session details, ie login id etc?
What happens if someone has cookies disabled or no remember me ticked? Can vBulletin work without cookies? |
#8
|
|||
|
|||
![]()
If the browser doesnt have cookies enabled you're up shit creek (no paddle) unless you want to start messing with sessionhashes on the url (which ive never looked at), the only thing the cookie will tell you is a sessionhash - youll need to query it from the db and compare the password (in another cookie) against the user database.
|
#9
|
|||
|
|||
![]()
ahh, does vB work with cookies off? i guess it only has to look at its session variables...
So the only way i am going to be able to tell if someone is logged in from ASP is to check that cookie? |
#10
|
|||
|
|||
![]()
vbulletin works fine without cookies, its your script that will break if they are disabled because its not possible for you to know if someone is logged in or not unless vbulletin passes a session hash back to your pages. I dont suspect they will visit the forums before the main site. (That and intergrating a seperate sessionhash into your site is a big job, every url needs to pass one).
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|