| Author |
Topic Search Topic Options
|
mysavings.com
Newbie
Joined: 24 January 2008
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
Putz22
Moderator Group
Joined: 06 May 2008
Location: United States
Status: Offline
Points: 182
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
mysavings.com
Newbie
Joined: 24 January 2008
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
StarDust
Senior Member
Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
mysavings.com
Newbie
Joined: 24 January 2008
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
StarDust
Senior Member
Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
|
Post Options
Thanks(0)
Quote Reply
Posted: 14 August 2008 at 12:27pm |
|
can you post the bunch of code that you used to log off from forum?
|
|
|
 |
mysavings.com
Newbie
Joined: 24 January 2008
Status: Offline
Points: 30
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
StarDust
Senior Member
Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
|
Post Options
Thanks(0)
Quote Reply
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
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.
|
|
|
 |