Author |
Topic |
david4021
Starting Member
11 Posts |
Posted - 08 May 2006 : 14:41:42
|
How can I avoid the recurring problem where the users get a link to the topic and miss the login fields and lose their entire response when they hit the "post new topic" button?
The cookie "works" fine if they enter the site through /default.asp (in otherwords they are remembered unless they explictly logout)
I'm guessing somewhere in default.asp the system pulls the cookie and logs them in - where and any reason why I cant replicate this behaviour in topic.asp so that they are not confronted with the username/password fields if they go topic.asp-->post.asp
|
Edited by - david4021 on 08 May 2006 15:19:52 |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
david4021
Starting Member
11 Posts |
Posted - 08 May 2006 : 16:59:51
|
yeah, but what I want is for every page to "remember" the visitor:
1) /default.asp - user logins
2) close browswer
3) /default.asp - user is identifed via cookie
4) closer browser
5) /topic.asp --> post.asp and username/password boxes are displayed and user must re-login before posting
|
Edited by - david4021 on 08 May 2006 17:00:23 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 08 May 2006 : 17:06:24
|
You could change how long the cookie persists... off hand I think its in config.asp (can't remember at the moment).
But if they have the browser set to clear the cookies at a set event (like on close) or a set interval, it won't matter what you do.
Or you could simply require them to log in to view the forum, but that usually deters a lot of people from joining...
The problem is how to handle the information sent in the post after its been determined that they didn't log in. To the best of my knowledge, there really isn't an easy and secure way to do this. I could be mistaken though.
Most forums that I've used exhibit this behavior. Not that that makes it right or wrong, just that its a common problem. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 08 May 2006 : 17:12:17
|
Well you could change the cookie handling function to record the last page visited in the cookie and force a login if the user came in again through a different page. I do think that would be a very "user unfriendly" change, though!
Anyway, your guessing is not correct. Login is handled in inc_header.asp, which is present in every non popup page in Snitz. What you can do to minimize that situation is to increase the cookie duration in config.asp. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
david4021
Starting Member
11 Posts |
Posted - 09 May 2006 : 08:54:08
|
If I read config.asp correctly:
intCookieDuration = 30
is 30 DAYS, I'm talkiing 30 seconds and I can produce the problem
The behaviour is easily reproducible, basically a login on any page but default.asp doesnt "stick" across sessions?
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
david4021
Starting Member
11 Posts |
Posted - 09 May 2006 : 09:34:51
|
I emailed it to you
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 09 May 2006 : 09:56:25
|
Just posted there, had no problems whatsoever. Check your computer time.
Also, it seems that you're using an ODBC driver to connect to SQL Server. Change that to an OLEDB driver (one of the options in config.asp with SQLOLEDB provider. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
david4021
Starting Member
11 Posts |
Posted - 09 May 2006 : 09:59:22
|
firstly, thanks you for taking the time to look
sorry - check my computer time?
ok, you were able to login on the post.asp and then if you went to topic.asp or /default.asp you remaineded logged in?
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 09 May 2006 : 10:04:48
|
Yep, check your computer date and time to make sure it's correct. It's a common situation causing login problems.
I logged in, browsed some forums, made a new topic, made some replies. I got some error messages, but the posts went through. Closed the browser window, back again to default.asp, new post, no issues with login, ever.
Once in a while I get an error while posting. Weird, since the post goes through. Try changing the connection string to an OLEDB provider, I think it may help. Even if it does not, the OLEDB provider is always faster and more robust than the ODBC one.
|
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
david4021
Starting Member
11 Posts |
Posted - 09 May 2006 : 10:16:08
|
ok, thanks, I fixed the time, you were right it's off by a minute
and GOOD catch on the ODBC thing I had planned to change that and forgot, its done now
Q - I have setup the site to notify me via an email (custom code) when there is a post but for none of your posts did I get an email which would explain the error you saw flash by, can you explain exactly where you posted from since I can't reproduce this problem on the "Reply To Topic" links on the topic.asp nor the "Reply with Quote" link on the same page which all go through post_info.asp?
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 09 May 2006 : 10:24:03
|
The error is still there. There is a topic I created which now has 3 replies but the topic shows up has having no replies when you see the topic from forum.asp, in the Business Best Practices forum.
Did you add any changes to the forum? That's where I clicked to add the replies. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
david4021
Starting Member
11 Posts |
Posted - 09 May 2006 : 10:52:37
|
I diff'd my forum.asp with the original, only change is we removed the "inc_jump_to.asp"
|
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Topic |
|