Click here to Skip to main content
15,889,335 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: title Pin
Nirandas31-Jul-08 18:58
Nirandas31-Jul-08 18:58 
QuestionPROBLEM FIRING TEXTCHANGED EVENT [modified] Pin
Arindam Datta29-Jul-08 23:53
Arindam Datta29-Jul-08 23:53 
Questionpaypal integration problem Pin
Prashant B. Lavate29-Jul-08 23:25
Prashant B. Lavate29-Jul-08 23:25 
AnswerRe: paypal integration problem Pin
eyeseetee29-Jul-08 23:39
eyeseetee29-Jul-08 23:39 
Questionhide toolbar Pin
niki_nilu29-Jul-08 23:25
niki_nilu29-Jul-08 23:25 
AnswerRe: hide toolbar Pin
eyeseetee29-Jul-08 23:41
eyeseetee29-Jul-08 23:41 
AnswerRe: hide toolbar Pin
Venkatesh Mookkan30-Jul-08 1:30
Venkatesh Mookkan30-Jul-08 1:30 
QuestionInteresting Cookie "quirk", expiry problems. Pin
phannon8629-Jul-08 23:05
professionalphannon8629-Jul-08 23:05 
This is the first time I've had to ask for help, but this issue is really getting to me and I can't seem to find a solution, or any mention of it. Apologies for the essay...

A few weeks ago I inherited a webapp to maintain/update as necessary from someone who has long since left the company, I've had to learn what I needed as I went as the company doesn't really do webapps, mostly windows apps written in C# and MFC so they have about as much of a clue about this app as I do.

It's a lovely combo of html, css and classic asp/vbscript on a device running WindowsCE.

The problem: There's a requirement for the app that it must logout automatically after 2 minutes of being idle "no problem", I thought. The code is already in a nasty state, and I've done what I can but at this point a total rework is needed, for the time being it needs patching. So what I whipped up was a cookie that gets created upon login, and reinitialised after a new page is loaded (and the time hasn't expired).

Example:
Response.Cookies("MyCookie").Expires = DateAdd("n", 2, now())


In addition to this, one of the now unused frames contains a piece of script to refresh the page just after 2 minutes, effectively logging the user out when the page refreshes if it's been idle. Not a great solution, but it does the job for now. The client also requires this run under Firefox and IE7.

A few weeks ago during testing, I noticed that on Firefox, the cookie would not expire, and every 2 minutes or so the page would refresh and the app would still be logged in. IE7 however was fine. The problem was that the cookie's expiry was an hour longer than I told it to be... Unable to find a cause I assumed it was something existing in the app/firefox and decided to detect which browser was running and set different expiries for the cookie (2min for IE7, -58mins for FF). This worked for a day, then all of a sudden, FF wouldn't login, the cookie was expiring immediately, so I changed it back again. All was well, til now...

The same problem is now occurring in IE7, and once again, setting the cookie expiry to -58mins for IE7 "solves" it, but FF is fine this time. So I'm thinking there's a problem elsewhere causing this, and that I should look for the cause because the "workaround" of setting -58mins is no kind of solution at all, especially if the behaviour is not consistent.

Again, apologies for the essay Smile | :) Cheers for your help.
AnswerRe: Interesting Cookie "quirk", expiry problems. Pin
Venkatesh Mookkan30-Jul-08 1:28
Venkatesh Mookkan30-Jul-08 1:28 
GeneralRe: Interesting Cookie "quirk", expiry problems. Pin
phannon8630-Jul-08 2:45
professionalphannon8630-Jul-08 2:45 
AnswerRe: Interesting Cookie "quirk", expiry problems. Pin
Yusuf30-Jul-08 7:30
Yusuf30-Jul-08 7:30 
Question[Message Deleted] Pin
Arindam Datta29-Jul-08 22:45
Arindam Datta29-Jul-08 22:45 
AnswerRe: REPOST ALERT!! Pin
eyeseetee29-Jul-08 22:51
eyeseetee29-Jul-08 22:51 
QuestionHow to I create a "New articles of today" list in the website? Pin
katelva29-Jul-08 22:21
katelva29-Jul-08 22:21 
AnswerRe: How to I create a "New articles of today" list in the website? Pin
eyeseetee29-Jul-08 22:50
eyeseetee29-Jul-08 22:50 
Questionhow to pass the ID of a text box in a gridview to a javascript Pin
Arindam Datta29-Jul-08 21:29
Arindam Datta29-Jul-08 21:29 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
Imran Khan Pathan29-Jul-08 21:45
Imran Khan Pathan29-Jul-08 21:45 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
eyeseetee29-Jul-08 21:51
eyeseetee29-Jul-08 21:51 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC29-Jul-08 22:05
J4amieC29-Jul-08 22:05 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
eyeseetee29-Jul-08 22:20
eyeseetee29-Jul-08 22:20 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
Arindam Datta29-Jul-08 22:07
Arindam Datta29-Jul-08 22:07 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC30-Jul-08 0:03
J4amieC30-Jul-08 0:03 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC29-Jul-08 22:06
J4amieC29-Jul-08 22:06 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
Arindam Datta29-Jul-08 22:11
Arindam Datta29-Jul-08 22:11 
QuestionPaypal integration Pin
Prashant B. Lavate29-Jul-08 21:24
Prashant B. Lavate29-Jul-08 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.