Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - logoff cookies
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

logoff cookies

 Post Reply Post Reply Page  12>
Author
mysavings.com View Drop Down
Newbie
Newbie


Joined: 24 January 2008
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote mysavings.com Quote  Post ReplyReply Direct Link To This Post Topic: logoff cookies
    Posted: 13 August 2008 at 9:06pm
I'm integrating our site logon / logoff with WWF 9.50.  The logoff from the forums works fine, but if a user logs off from our site, even though I do a session.abandon, if I return to the forums, I'm still logged in.  I imagine there are some cookies that I need to reset.  Can you provide me the WWF cookie variables that I can reset from our sites logoff page.
 
Thanks,
 
MySavings
Back to Top
Putz22 View Drop Down
Moderator Group
Moderator Group


Joined: 06 May 2008
Location: United States
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote Putz22 Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 9:36pm
It is possible to check your Profile also.. you might have it when you return to the forums to automatically log you back it.. you might want to check on that.. if you click that off.. it might fix your problem
Back to Top
mysavings.com View Drop Down
Newbie
Newbie


Joined: 24 January 2008
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote mysavings.com Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 9:39pm

When a user logs off the sites, I am assuming that they no longer want to be logged in, so I clear all of our site login cookies, and would like to do the same for the forum cookies, so that the user would need to log back in again from the sites login form should they choose to.

Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2008 at 6:19am
mysavings.com,

Take a look inside log_off_user.asp and you'll get everything you are looking for.
Back to Top
mysavings.com View Drop Down
Newbie
Newbie


Joined: 24 January 2008
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote mysavings.com Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2008 at 11:37am

I have looked in log_off_user.asp, and I have tried reseting the session and cookie variables, but I still can't get the forum to log me off.  If someone could provide me with the cookie / session variables that need to be reset, I'd be much appreciated.

Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2008 at 12:27pm
can you post the bunch of code that you used to log off from forum?
Back to Top
mysavings.com View Drop Down
Newbie
Newbie


Joined: 24 January 2008
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote mysavings.com Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2008 at 4:45pm
Greetings StarDust, thanks for the reply.
 
In WWF 8, I did:
 
session.abandon
Response.Cookies("WWF")("UID") = ""
Response.Cookies("WWF") = ""
And that seemed to work.  The login functionality has been impoved in WWF 9, and the routines changed. So I tried everything I could think of, including:
 
session.abandon
Response.Cookies("WWF9sID") = ""
Response.Cookies("WWF9sLID") = ""
Response.Cookies("WWF9lVisit") = ""
Response.Cookies("WWF9fID") = ""
 
Anyways, my question is easy enough: What cookies need to be reset to logoff the user out of the forums to prevent them from being automatically logged back in again.  And other than a session.abandon, is there anything else that needs to be done to logoff a user from the forums and clear auto-login information?
 
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2008 at 3:31am
mysavings.com,

I can only tell you how to log off from v9.50 I do not really recall what was in v8. If you need support for v8, this is not the right forum.

Secondarily check if the cookies are working for you. Do you see a "SID=" at the end of the URL? If it is, then take a look at setup_options_inc.asp, disable line 46 and uncomment line 47.

Here is the code bunch required to log off a user.

Clear Cookie

    'Clear the cookie
    Response.Cookies(strCookiePrefix & "sID") = ""
    Response.Cookies(strCookiePrefix & "sID").Path = strCookiePath
    Response.Cookies(strCookiePrefix & "sLID") = ""
    Response.Cookies(strCookiePrefix & "sLID").Path = strCookiePath
    Response.Cookies(strCookiePrefix & "lVisit") = ""
    Response.Cookies(strCookiePrefix & "lVisit").Path = strCookiePath
    Response.Cookies(strCookiePrefix & "fID") = ""
    Response.Cookies(strCookiePrefix & "fID").Path = strCookiePath
    'This one stops user voting in polls so doesn't really want to be cleared
    'Response.Cookies(strCookiePrefix & "pID") = ""
    'Response.Cookies(strCookiePrefix & "pID").Path = strCookiePath



- OR -
You can simply call this function
clearCookie()


And you need this

Call saveSessionItem("UID", "")
Call saveSessionItem("AID", "")


'For extra security create a new user code for the user (if member account is active and windows authentication is disabled)
If blnActiveMember AND blnWindowsAuthentication = False Then

    'Initalise the strSQL variable with an SQL statement to query the database
    strSQL = "SELECT " & strDbTable & "Author.User_code " & _
    "FROM " & strDbTable & "Author" & strRowLock & " " & _
    "WHERE " & strDbTable & "Author.Author_ID = " & lngLoggedInUserID & ";"
   
    'Set the Lock Type for the records so that the record set is only locked when it is updated
    rsCommon.LockType = 3
   
    'Query the database
    rsCommon.Open strSQL, adoCon
   
    'Get the present usercode
    strUserCode = rsCommon("User_code")
       
    'For extra security create a new user code for the user
    strUserCode = userCode(strLoggedInUsername)
   
               
    'Save the new usercode back to the database
    rsCommon.Fields("User_code") = strUserCode
    rsCommon.Update
   
    'Close recordset
    rsCommon.Close
End If



'Reset Server Objects
Call closeDatabase()



If member API is on

'If the members API is active
If blnMemberAPI = True Then
   
    'Destroy member API login variables
    Session("USER") = ""
    Session("PASSWORD") = ""
    Session("EMAIL") = ""
   
    'If a logout URL has been enetered for the websites onw logout system redirect to it
    If strMemberAPILogoutURL <> "" Then Response.Redirect(strMemberAPILogoutURL)
End If



That is all you need. As you can see it's the whole log_off_user.asp. That file and only that file you need to log off. That is why I asked you for your code.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.