Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Jul 2015, 15:41
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Real name: Tom McIntyre
Question Clearing cookies in logout

Our single sign on facility uses the organization membership system to log users into all the systems including vBulletin.

After a recent upgrade, we are having problems with the cookies that are used to transmit the user information between the systems with vBulletin. Specifically, I need to clear several cookies that were set initially by the membership system.

If they do not get cleared, there are problems trying to use that tool to log back in to vBulletin.

I tried using a plugin at the hook logout_process but this code appears to do nothing.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I presume that this is because output is in process but I do not know how to add these cookies to those that vBulletin will clear.
Reply With Quote
  #2  
Old 30 Jul 2015, 20:14
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
It oesn't look like there should have been any output before the logout_process hook, unless it's a php error message or warning. Have you used the browser developers tools to look at what cookies are being sent with requests?

By the way, you shouldn't use return from a plugin. If there are any other plugins using that same hook, it could stop them from running (but I have no reason to think that's what's causing your current problem).
Reply With Quote
  #3  
Old 30 Jul 2015, 23:39
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Real name: Tom McIntyre
Thank you. The return false is there because that is what I thought was needed to avoid a possible true value from the eval which I understood would terminate the hook. I do most of this monkey style without really understanding it.

It turns out the consultant provides a cookie cleanup in the authentication server and it needs code like this which I have associated with a button in the header template.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Since I don't anticipate this ever being a product I am not worried about the lack of portability, but I would like it to work. The above does not work completely and gives an error from the vBulletin logout on the return.

I was hoping that the vB variables were expanded in that url, but maybe they are not.

I appreciate any suggestions for proper formation of the above. I want it to go to the server and clear the foreign cookies and return with the job of logging off locally.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logout Button replacing Logout text TheMusicMan vBulletin 3.5 Template Modifications 14 25 Dec 2007 18:33



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:59.

Layout Options | Width: Wide Color: