Re: Problem with automatic session timeout

From: Jack (Jack_at_discussions.microsoft.com)
Date: 01/07/05


Date: Fri, 7 Jan 2005 08:11:20 -0800

Thanks for the explanation Steven. I appreciate it. Regards

"Steven Burn" wrote:

> it depends on how your logging out.
>
> For example, if you have a logout link that points to;
>
> <your_server>/dir/default.asp?action=logout&user=someone
>
> You would replace the URL in the meta tag with the above.
>
> Hope that makes sense.
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
> "Jack" <Jack@discussions.microsoft.com> wrote in message
> news:A5FA8CFC-268A-4016-B448-49B602E4C334@microsoft.com...
> > Thanks Steven for your help again. I have a quick question. With the
> syntax
> > you provided, is logout a universal code here or it depends on the logout
> > screen name?
> > In other words, should my corrected syntax be:
> > <META http-equiv="refresh"
> >
> content="10;url=http://localhost/gwisbrandnewready2/default.asp?logout=true"
> >
> > Please let me know. Regards.
> >
> >
> > "Steven Burn" wrote:
> >
> > > It will only re-direct to the login page if the session has ended (i.e.
> > > you've logged out). You need to set the URL to your "logout" URL first.
> For
> > > example;
> > >
> > > <meta http-equiv="refresh"
> > > content="10;url=http://localhost/somepage.asp?logout=true">
> > >
> > > This will have the same effect as clicking your "Logout" link (if you
> have
> > > one).
> > >
> > > --
> > >
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > news:FE5F1FA8-E01F-4C72-A010-36663AB6215A@microsoft.com...
> > > > Thanks for your reply Steven. I just wrote the meta tag to my page and
> am
> > > > giving 10 secs to be redirected to the login page. However, with this
> > > action,
> > > > after reloading a new record, I am waiting for more than one minute.
> Still
> > > I
> > > > do not see the page redirected to the login screen as shown in the
> code.
> > > Any
> > > > idea what's going on here? I wrote the meta tag in the <head> tag of
> the
> > > > page. Thanks
> > > > <META http-equiv="refresh"
> > > > content="10;url=http://localhost/gwisbrandnewready2/default.asp">
> > > > "Steven Burn" wrote:
> > > >
> > > > > > Does the custom timeout override the server default timeout?
> > > > >
> > > > > Alledgedly..... but in my experience, it's not very reliable.
> > > > >
> > > > > How about using the meta refresh tag to auto-redirect to the
> "logout"
> > > action
> > > > > after for example, 15 mins? (AFAIK, the default timeout for most
> servers
> > > is
> > > > > 20 mins).
> > > > >
> > > > > --
> > > > >
> > > > > Regards
> > > > >
> > > > > Steven Burn
> > > > > Ur I.T. Mate Group
> > > > > www.it-mate.co.uk
> > > > >
> > > > > Keeping it FREE!
> > > > >
> > > > > "Jack" <Jack@discussions.microsoft.com> wrote in message
> > > > > news:0F82099C-666D-41C1-BC0E-F4CD3582DB74@microsoft.com...
> > > > > > Hi,
> > > > > > In my application, the main page is accessed via a login screen. A
> > > > > > particular record is accessed based on the value of login page.
> > > Everything
> > > > > > works fine. However, if this screen is kept idle (not sure for how
> > > long
> > > > > now),
> > > > > > and then if I try to save, the following error message comes up:
> > > > > > Error Type:
> > > > > > Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
> > > > > > [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing
> > > operator)
> > > > > in
> > > > > > query expression 'SubgrantIntID ='.
> > > > > > /gwisbrandnewready2/insertorupdatecurrentexpense1.asp, line 32
> > > > > >
> > > > > > In this situation, I have to relogin again to do edits to this
> form
> > > for a
> > > > > > particular record and save.
> > > > > > Now my question is: Is there any way to code to get one logged out
> > > > > > automatically after sometime, so that, I do not have to encounter
> the
> > > > > above
> > > > > > error which means after sometime, the login screen will appear
> > > instead.
> > > > > Does
> > > > > > the custom timeout override the server default timeout? Any help
> is
> > > > > > appreciated. Thanks
> > > > > > Regards.
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: Problem with automatic session timeout
    ... is logout a universal code here or it depends on the logout ... should my corrected syntax be: ... Regards. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Problem with automatic session timeout
    ... if you have a logout link that points to; ... You would replace the URL in the meta tag with the above. ... Regards. ... > "Steven Burn" wrote: ...
    (microsoft.public.inetserver.asp.general)
  • Re: DSNLess connection
    ... Regards ... DO NOT stick the database in reach of the outside world (stick it ... > Steven Burn ... > Ur I.T. Mate Group ...
    (microsoft.public.inetserver.asp.db)
  • Re: Why cant I test class functions from the Immediate window?
    ... Regards ... >> Steven Burn ... >>> I created a Class module in that project. ... >>> I am able to test them from the Immediate window. ...
    (microsoft.public.vb.general.discussion)
  • Re: active x control
    ... Regards ... >> Steven Burn ... >> Ur I.T. Mate Group ... >>> doc file that ocx is using. ...
    (microsoft.public.scripting.vbscript)