Author |
Topic |
|
anke
Starting Member
2 Posts |
Posted - 12 April 2006 : 08:03:00
|
Hi, hope this is the right area to post this question..
I am testing version 3.4.05 and got to a point where need some help.
I seem to be loosing the cookie information after logging on which means that whenever I try to get to an area other than the forum (members, profile of others users) I get a problem message: e.g. "You must be logged in to view a Members' Profile".
I have been digging in the code and cannot seem to find at which point the information gets lost. I've commented the ClearCookies sub out so that cannot interfer with anything and added the following code to see when there are cookies and when not:
dim x,y for each x in Request.Cookies response.write("<p>") if Request.Cookies(x).HasKeys then for each y in Request.Cookies(x) response.write(x & ":" & y & "=" & Request.Cookies(x)(y)) response.write("<br />") next else Response.Write(x & "=" & Request.Cookies(x) & "<br />") end if response.write "</p>" next
I have included this code in default.asp before this line
<!--#INCLUDE file="includes/inc_func_secure.asp" -->
When I now log on from the first page, default.asp, I can see the cookies when I get the message "You logged on successfully". I then get taken back to the forum at which point the cookies containing keys disappear. The strSelectSize one though displays having a value of "1" in my case.
I assume that something happens in or after inc_func_secure.asp, but I just can't workout what and where.
Hope I've explained this ok and someone can help me.
Note: I have moved all the inc-files in a seperate folder called "includes" to make the site content a bit easier to manage, but I don't suppose that would have anything to do with this problem. Just thought I mention it.
Any help is much appreciated.
Thanks |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 12 April 2006 : 08:08:45
|
try changeing your cookie mode (in the forum admin) from forum to website, or vice versa whichever you currently have it set to, swap it to the other mode |
|
|
anke
Starting Member
2 Posts |
Posted - 12 April 2006 : 09:52:48
|
Hi, Thanks for the quick answer!
Yes, that worked!
Trying to find out now how to log off and log on as someone else as I can't seem to do that. Probably the cookie not getting deleted properly. I'll sure find out.
Thanks again for your help. |
|
|
|
Topic |
|
|
|