|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
IE6 and 7 cookies and sessions troubleshootingSomething in my session manager is barfing for a few users of IE6 and IE7, but not all. The session manager is set to -useauto:
session_start(-name=$session_name, -expires=15, -useauto); If one of the session variables is not defined (which implies that the session has expired), then the user gets redirected to login. I inserted some code to email me when this occurs: email_send( -to = 'blah', -from = 'blah', -subject= 'Session Error', -body = response_filepath+'\r\r'+variables+'\r\r'+action_params+'\r\r'+client_browser ); So far so good. But, the problem is that these few users login successfully, then click to go to another page, then the system logs them out immediately. I have not been able to identify any distinct pattern yet, other than IE6 and IE7 fail for only a few users, but Firefox is fine. Of course, my testing in VMWare with IE7 does not yield the logout redirection. I found this in the variables output, so the session is expiring immediately after a user logs in: (_SessionTracker_Result)=(expire) Is there additional recommended data that I should collect to narrow down the cause of this issue? Is there some session/cookie expiration thingie (the technical term) in IE6/7 that I should be aware of? --steve -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingThis could be way off the mark - but I had the same issue a while
back, and it turned out to be due to the fact that I had used a hyphen in the sub-domain name for my QA environment, and I guess IE had an issue assigning the cookie to the domain due to the non-standard naming. As there was nothing wrong at the server level, the cookie was being assigned, and there was no need to use URL based sessions, but the cookie was not then picked up by IE! Many thanks Gary Clark On 18 Jul 2008, at 09:27, Steve Piercy - Web Site Builder wrote: > Something in my session manager is barfing for a few users of IE6 > and IE7, but not all. The session manager is set to -useauto: > > session_start(-name=$session_name, -expires=15, -useauto); > > If one of the session variables is not defined (which implies that > the session has expired), then the user gets redirected to login. I > inserted some code to email me when this occurs: > > email_send( > -to = 'blah', > -from = 'blah', > -subject= 'Session Error', > -body = response_filepath+'\r\r'+variables+'\r > \r'+action_params+'\r\r'+client_browser > ); > > So far so good. But, the problem is that these few users login > successfully, then click to go to another page, then the system logs > them out immediately. > > I have not been able to identify any distinct pattern yet, other > than IE6 and IE7 fail for only a few users, but Firefox is fine. > > Of course, my testing in VMWare with IE7 does not yield the logout > redirection. > > I found this in the variables output, so the session is expiring > immediately after a user logs in: > > (_SessionTracker_Result)=(expire) > > Is there additional recommended data that I should collect to narrow > down the cause of this issue? > > Is there some session/cookie expiration thingie (the technical term) > in IE6/7 that I should be aware of? > > --steve > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Steve Piercy Web Site Builder Soquel, CA > <web@...> <http://www.StevePiercy.com/> > > -- > This list is a free service of LassoSoft: http://www.LassoSoft.com/ > Search the list archives: http://www.ListSearch.com/Lasso/Browse/ > Manage your subscription: http://www.ListSearch.com/Lasso/ > > -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingHave you checked for clock skew? Do the users whose sessions are
immediately expiring have the date, time, and time zone correctly set on their computers? Are they using a network time server to keep their clocks sync'ed? The clocks, especially on older PC's, tend to drift as the clock battery wears out or fails completely. Use javascript to populate a hidden form field with the current timestamp of the user's system on submit, and compare that to the time on the server when the form is submitted. - jason On Fri, Jul 18, 2008 at 4:27 AM, Steve Piercy - Web Site Builder <Web@...> wrote: > Something in my session manager is barfing for a few users of IE6 and IE7, but not all. The session manager is set to -useauto: > > session_start(-name=$session_name, -expires=15, -useauto); > > If one of the session variables is not defined (which implies that the session has expired), then the user gets redirected to login. I inserted some code to email me when this occurs: > > email_send( > -to = 'blah', > -from = 'blah', > -subject= 'Session Error', > -body = response_filepath+'\r\r'+variables+'\r\r'+action_params+'\r\r'+client_browser > ); > > So far so good. But, the problem is that these few users login successfully, then click to go to another page, then the system logs them out immediately. > > I have not been able to identify any distinct pattern yet, other than IE6 and IE7 fail for only a few users, but Firefox is fine. > > Of course, my testing in VMWare with IE7 does not yield the logout redirection. > > I found this in the variables output, so the session is expiring immediately after a user logs in: > > (_SessionTracker_Result)=(expire) > > Is there additional recommended data that I should collect to narrow down the cause of this issue? > > Is there some session/cookie expiration thingie (the technical term) in IE6/7 that I should be aware of? > > --steve > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Steve Piercy Web Site Builder Soquel, CA > <web@...> <http://www.StevePiercy.com/> > > -- > This list is a free service of LassoSoft: http://www.LassoSoft.com/ > Search the list archives: http://www.ListSearch.com/Lasso/Browse/ > Manage your subscription: http://www.ListSearch.com/Lasso/ > > -- tagSwap.net :: Open Source Lasso Code <http://tagSwap.net/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingI have a js function that can write to an element in the DOM, but how would I modify an anchor, like so?
<a href="foo.lasso?timestamp=(result from javascript function)"> This interface uses links to navigate between areas, not forms, so I don't think a hidden form field would work in this situation. And the "" prevent the js function from being interpreted. --steve On Friday, July 18, 2008, jason.huck@... (Jason Huck) pronounced: >Have you checked for clock skew? Do the users whose sessions are >immediately expiring have the date, time, and time zone correctly set >on their computers? Are they using a network time server to keep their >clocks sync'ed? The clocks, especially on older PC's, tend to drift as >the clock battery wears out or fails completely. > >Use javascript to populate a hidden form field with the current >timestamp of the user's system on submit, and compare that to the time >on the server when the form is submitted. > >- jason > > > >On Fri, Jul 18, 2008 at 4:27 AM, Steve Piercy - Web Site Builder ><Web@...> wrote: >> Something in my session manager is barfing for a few users of IE6 and IE7, but not >all. The session manager is set to -useauto: >> >> session_start(-name=$session_name, -expires=15, -useauto); >> >> If one of the session variables is not defined (which implies that the session has >expired), then the user gets redirected to login. I inserted some code to email me >when this occurs: >> >> email_send( >> -to = 'blah', >> -from = 'blah', >> -subject= 'Session Error', >> -body = >response_filepath+'\r\r'+variables+'\r\r'+action_params+'\r\r'+client_browser >> ); >> >> So far so good. But, the problem is that these few users login successfully, then >click to go to another page, then the system logs them out immediately. >> >> I have not been able to identify any distinct pattern yet, other than IE6 and IE7 >fail for only a few users, but Firefox is fine. >> >> Of course, my testing in VMWare with IE7 does not yield the logout redirection. >> >> I found this in the variables output, so the session is expiring immediately after >a user logs in: >> >> (_SessionTracker_Result)=(expire) >> >> Is there additional recommended data that I should collect to narrow down the >cause of this issue? >> >> Is there some session/cookie expiration thingie (the technical term) in IE6/7 that >I should be aware of? >> >> --steve >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >> Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >> Manage your subscription: http://www.ListSearch.com/Lasso/ >> >> > > > >-- >tagSwap.net :: Open Source Lasso Code ><http://tagSwap.net/> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingnm. Pilsonism. Just do it inline:
<script language="javascript"> myDate = new Date(); var yyyy = myDate.getUTCFullYear(); //return the Universal Time four digit year var mo = myDate.getUTCMonth(); //return the Universal Time month var dd = myDate.getUTCDate(); //return the Universal Time day of the month var hh = myDate.getUTCHours(); //return the Universal Time hours var mi = myDate.getUTCMinutes(); //return the Universal Time minutes var ss = myDate.getUTCSeconds(); //return the Universal Time seconds document.write('<a href="/page.lasso?mytimestamp='+yyyy+'-'+mo+'-'+dd+'_'+hh+':'+mi+':'+ss+'">hello</a>'); </script> --steve On Friday, July 18, 2008, Web@... (Steve Piercy - Web Site Builder) pronounced: >I have a js function that can write to an element in the DOM, but how would I modify >an anchor, like so? > ><a href="foo.lasso?timestamp=(result from javascript function)"> > >This interface uses links to navigate between areas, not forms, so I don't think a >hidden form field would work in this situation. And the "" prevent the js function >from being interpreted. > >--steve > > >On Friday, July 18, 2008, jason.huck@... (Jason Huck) pronounced: > >>Have you checked for clock skew? Do the users whose sessions are >>immediately expiring have the date, time, and time zone correctly set >>on their computers? Are they using a network time server to keep their >>clocks sync'ed? The clocks, especially on older PC's, tend to drift as >>the clock battery wears out or fails completely. >> >>Use javascript to populate a hidden form field with the current >>timestamp of the user's system on submit, and compare that to the time >>on the server when the form is submitted. >> >>- jason >> >> >> >>On Fri, Jul 18, 2008 at 4:27 AM, Steve Piercy - Web Site Builder >><Web@...> wrote: >>> Something in my session manager is barfing for a few users of IE6 and IE7, but >not >>all. The session manager is set to -useauto: >>> >>> session_start(-name=$session_name, -expires=15, -useauto); >>> >>> If one of the session variables is not defined (which implies that the session >has >>expired), then the user gets redirected to login. I inserted some code to email me >>when this occurs: >>> >>> email_send( >>> -to = 'blah', >>> -from = 'blah', >>> -subject= 'Session Error', >>> -body = >>response_filepath+'\r\r'+variables+'\r\r'+action_params+'\r\r'+client_browser >>> ); >>> >>> So far so good. But, the problem is that these few users login successfully, >then >>click to go to another page, then the system logs them out immediately. >>> >>> I have not been able to identify any distinct pattern yet, other than IE6 and IE7 >>fail for only a few users, but Firefox is fine. >>> >>> Of course, my testing in VMWare with IE7 does not yield the logout redirection. >>> >>> I found this in the variables output, so the session is expiring immediately >after >>a user logs in: >>> >>> (_SessionTracker_Result)=(expire) >>> >>> Is there additional recommended data that I should collect to narrow down the >>cause of this issue? >>> >>> Is there some session/cookie expiration thingie (the technical term) in IE6/7 >that >>I should be aware of? >>> >>> --steve >>> >>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>> Steve Piercy Web Site Builder Soquel, CA >>> <web@...> <http://www.StevePiercy.com/> >>> >>> -- >>> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >>> Manage your subscription: http://www.ListSearch.com/Lasso/ >>> >>> >> >> >> >>-- >>tagSwap.net :: Open Source Lasso Code >><http://tagSwap.net/> >> > >-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >Steve Piercy Web Site Builder Soquel, CA ><web@...> <http://www.StevePiercy.com/> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingThanks for the note. This domain name and host name contain no hyphens.
--steve On Friday, July 18, 2008, gary@... (Gary Clark) pronounced: >This could be way off the mark - but I had the same issue a while >back, and it turned out to be due to the fact that I had used a hyphen >in the sub-domain name for my QA environment, and I guess IE had an >issue assigning the cookie to the domain due to the non-standard >naming. As there was nothing wrong at the server level, the cookie was >being assigned, and there was no need to use URL based sessions, but >the cookie was not then picked up by IE! > >Many thanks > >Gary Clark > > >On 18 Jul 2008, at 09:27, Steve Piercy - Web Site Builder wrote: > >> Something in my session manager is barfing for a few users of IE6 >> and IE7, but not all. The session manager is set to -useauto: >> >> session_start(-name=$session_name, -expires=15, -useauto); >> >> If one of the session variables is not defined (which implies that >> the session has expired), then the user gets redirected to login. I >> inserted some code to email me when this occurs: >> >> email_send( >> -to = 'blah', >> -from = 'blah', >> -subject= 'Session Error', >> -body = response_filepath+'\r\r'+variables+'\r >> \r'+action_params+'\r\r'+client_browser >> ); >> >> So far so good. But, the problem is that these few users login >> successfully, then click to go to another page, then the system logs >> them out immediately. >> >> I have not been able to identify any distinct pattern yet, other >> than IE6 and IE7 fail for only a few users, but Firefox is fine. >> >> Of course, my testing in VMWare with IE7 does not yield the logout >> redirection. >> >> I found this in the variables output, so the session is expiring >> immediately after a user logs in: >> >> (_SessionTracker_Result)=(expire) >> >> Is there additional recommended data that I should collect to narrow >> down the cause of this issue? >> >> Is there some session/cookie expiration thingie (the technical term) >> in IE6/7 that I should be aware of? >> >> --steve >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >> Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >> Manage your subscription: http://www.ListSearch.com/Lasso/ >> >> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingI haven't been following this thread closely so forgive me if this has
already been suggested. I don't know that you can modify the value of href from within javascript. You could however, turn this: <a href="foo.lasso?timestamp=(result from javascript function)"> Into: <a href="javascript:MoveToFoo();"> And just have your javascript function pull the timestamp when the button is clicked. Anyhow, from what I've read it sounds like your session for these users is not being created since only the original login page works. Do they, perhaps have cookies disabled or something? -----Original Message----- From: Lasso Talk [mailto:lasso@...] On Behalf Of Steve Piercy - Web Site Builder Sent: Friday, July 18, 2008 2:47 PM To: Lasso Talk Subject: Re: IE6 and 7 cookies and sessions troubleshooting Thanks for the note. This domain name and host name contain no hyphens. --steve On Friday, July 18, 2008, gary@... (Gary Clark) pronounced: >This could be way off the mark - but I had the same issue a while >back, and it turned out to be due to the fact that I had used a hyphen >in the sub-domain name for my QA environment, and I guess IE had an >issue assigning the cookie to the domain due to the non-standard >naming. As there was nothing wrong at the server level, the cookie was >being assigned, and there was no need to use URL based sessions, but >the cookie was not then picked up by IE! > >Many thanks > >Gary Clark > > >On 18 Jul 2008, at 09:27, Steve Piercy - Web Site Builder wrote: > >> Something in my session manager is barfing for a few users of IE6 >> and IE7, but not all. The session manager is set to -useauto: >> >> session_start(-name=$session_name, -expires=15, -useauto); >> >> If one of the session variables is not defined (which implies that >> the session has expired), then the user gets redirected to login. I >> inserted some code to email me when this occurs: >> >> email_send( >> -to = 'blah', >> -from = 'blah', >> -subject= 'Session Error', >> -body = response_filepath+'\r\r'+variables+'\r >> \r'+action_params+'\r\r'+client_browser >> ); >> >> So far so good. But, the problem is that these few users login >> successfully, then click to go to another page, then the system logs >> them out immediately. >> >> I have not been able to identify any distinct pattern yet, other >> than IE6 and IE7 fail for only a few users, but Firefox is fine. >> >> Of course, my testing in VMWare with IE7 does not yield the logout >> redirection. >> >> I found this in the variables output, so the session is expiring >> immediately after a user logs in: >> >> (_SessionTracker_Result)=(expire) >> >> Is there additional recommended data that I should collect to narrow >> down the cause of this issue? >> >> Is there some session/cookie expiration thingie (the technical term) >> in IE6/7 that I should be aware of? >> >> --steve >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >> Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >> Manage your subscription: http://www.ListSearch.com/Lasso/ >> >> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingI think I hit on something. Here's some interesting data.
From the javascript, in UTC: pair: (mytimestamp)=(2008-7-24_4:12:33) From the output of [variables]: (__http_header__)=(HTTP/1.0 200 OK Server: Lasso/8 MIME-Version: 1.0 Content-type: text/html; charset=UTF-8 Set-Cookie: _SessionTracker_s_userprefs=9646541B11ad8005E5sjFFE7689B; expires=Fri, 25-Jul-2008 04:30:09 GMT; path=/ ) So clock skew was not an issue for this user. At first glance, the data doesn't seem unusual. Except I use this bit of code to start sessions: var('session_name' = 's_userprefs'); session_start(-name=$session_name, -expires=15, -useauto); The session should expire only 15 minutes into the future, not 1440 as it states in the __http_header__ variable. Does this mean Lasso sends a cookie using my session name that expires 1440 minutes in the future, when I explicitly set that session to expire in 15? Can someone shed some light on this issue? --steve On Friday, July 18, 2008, jason.huck@... (Jason Huck) pronounced: >Have you checked for clock skew? Do the users whose sessions are >immediately expiring have the date, time, and time zone correctly set >on their computers? Are they using a network time server to keep their >clocks sync'ed? The clocks, especially on older PC's, tend to drift as >the clock battery wears out or fails completely. > >Use javascript to populate a hidden form field with the current >timestamp of the user's system on submit, and compare that to the time >on the server when the form is submitted. > >- jason > > > >On Fri, Jul 18, 2008 at 4:27 AM, Steve Piercy - Web Site Builder ><Web@...> wrote: >> Something in my session manager is barfing for a few users of IE6 and IE7, but not >all. The session manager is set to -useauto: >> >> session_start(-name=$session_name, -expires=15, -useauto); >> >> If one of the session variables is not defined (which implies that the session has >expired), then the user gets redirected to login. I inserted some code to email me >when this occurs: >> >> email_send( >> -to = 'blah', >> -from = 'blah', >> -subject= 'Session Error', >> -body = >response_filepath+'\r\r'+variables+'\r\r'+action_params+'\r\r'+client_browser >> ); >> >> So far so good. But, the problem is that these few users login successfully, then >click to go to another page, then the system logs them out immediately. >> >> I have not been able to identify any distinct pattern yet, other than IE6 and IE7 >fail for only a few users, but Firefox is fine. >> >> Of course, my testing in VMWare with IE7 does not yield the logout redirection. >> >> I found this in the variables output, so the session is expiring immediately after >a user logs in: >> >> (_SessionTracker_Result)=(expire) >> >> Is there additional recommended data that I should collect to narrow down the >cause of this issue? >> >> Is there some session/cookie expiration thingie (the technical term) in IE6/7 that >I should be aware of? >> >> --steve >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> This list is a free service of LassoSoft: http://www.LassoSoft.com/ >> Search the list archives: http://www.ListSearch.com/Lasso/Browse/ >> Manage your subscription: http://www.ListSearch.com/Lasso/ >> >> > > > >-- >tagSwap.net :: Open Source Lasso Code ><http://tagSwap.net/> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
|
|
Re: IE6 and 7 cookies and sessions troubleshootingSteve Piercy - Web Site Builder wrote on 7/24/2008 1:14 AM:
> The session should expire only 15 minutes into the future, not 1440 > as it states in the __http_header__ variable. Does this mean Lasso > sends a cookie using my session name that expires 1440 minutes in the > future, when I explicitly set that session to expire in 15? When the session expires is independent of when the cookie expires. Lasso most likely has the cookie expire in 24 hours to prevent clock-skew; the session still will expire in 15 minutes. If you want to expire the cookie sooner, you can use the -CookieExpires param to set it: <http://reference.lassosoft.com/Reference.LassoApp?[Session_Start]> As to your original issue, are the users having issues sitting behind a proxy? Might be the proxy is interfering. - Bil -- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/Lasso/Browse/ Manage your subscription: http://www.ListSearch.com/Lasso/ |
| Free Forum Powered by Nabble | Forum Help |