Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Persistent Login
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

david4021
Starting Member

11 Posts

Posted - 08 May 2006 :  14:41:42  Show Profile
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

Posted - 08 May 2006 :  16:29:22  Show Profile  Send ruirib a Yahoo! Message
Login is made through any page, unless you changed the code in inc_header.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 08 May 2006 :  16:59:51  Show Profile
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
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 May 2006 :  17:06:24  Show Profile  Visit AnonJr's Homepage
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.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 May 2006 :  17:12:17  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 09 May 2006 :  08:54:08  Show Profile
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?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  09:21:49  Show Profile  Send ruirib a Yahoo! Message
Have a link to your forum and a test login?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 09 May 2006 :  09:34:51  Show Profile
I emailed it to you
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  09:56:25  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 09 May 2006 :  09:59:22  Show Profile
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?



Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  10:04:48  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  10:10:53  Show Profile  Send ruirib a Yahoo! Message
There is definitely an error with the forum. The replies number has not been updated in all my attempts to reply.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 09 May 2006 :  10:16:08  Show Profile
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?



Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  10:24:03  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

david4021
Starting Member

11 Posts

Posted - 09 May 2006 :  10:52:37  Show Profile
I diff'd my forum.asp with the original, only change is we removed the "inc_jump_to.asp"

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 May 2006 :  11:07:18  Show Profile  Send ruirib a Yahoo! Message
Well there is definitely an error ocurring when replying. Check that topic I told you about...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07