Read this...it may help:
http://www.experts-exchange.com/Web/Q_20911575.html
"DavidS" <DavidS@discussions.microsoft.com> wrote in message
news:E3879434-C794-456A-A92A-8B1FD820470C@microsoft.com...[color=blue]
> Bruce:
>
> Before I composed this newsletter to assistance, I did do the following...
>
> I had one Page_Load sub of ASPX web page with Session.Timeout = 20.
> I had another Page_Load sub of ASPX web page with Session.Timeout = 60.
>
> There were 2 ways I could do this - I assumed either in code-behind /[/color]
aspx.vb Page_Load or in HTML - JavaScript. I tried both and here is what
happens.[color=blue]
>
> In both instances - I always get default that is also in the web.config of[/color]
20 minutes.[color=blue]
> Is there an example of where two pages timeout with different settings. I[/color]
also attempted to put the <% Session.Timeout=20 %> or <% Session.Timeout=60
%> in Header section of web page - <script JavaScript>.[color=blue]
>
> I basically keep getting 20 minutes ALWAYS FOR ALL PAGES.
>
> What AM I MISSING or HAVE I OVERLOOKED - AGAIN - THIS IS WHY I ASKED MY[/color]
QUESTIONS THE WAY I DID...[color=blue]
>
> "bruce barker" wrote:
>[color=green]
> > see >>
> >
> >
> > "DavidS" <DavidS@discussions.microsoft.com> wrote in message
> > news:05E27664-3306-4031-B174-85E82991557E@microsoft.com...[color=darkred]
> > > First: There are several ways to confuse one regarding session[/color][/color][/color]
timeout.[color=blue][color=green][color=darkred]
> > > (1) web.config - <sessionState timeout="20">[/color]
> >[color=darkred]
> > >> default session timeout for site[/color]
> >[color=darkred]
> > > (2) IIS Manager | Internet Information Services | ServerNode | Default[/color][/color][/color]
Web[color=blue][color=green]
> > Site |[color=darkred]
> > > Properties | Configuration | Options | Enable Session State
> > > Session timeout 20[/color]
> >[color=darkred]
> > >> nothing to do with .net - classic asp session timeout[/color]
> >[color=darkred]
> > > (3) within Global.asax.vb file - Session_Start subroutine can use
> > > Session.Timeout=x minutes or[/color]
> >[color=darkred]
> > >> overriding the default session timeout at session start[/color]
> >[color=darkred]
> > > (4) within any web page, i.e., <web page>.aspx can use[/color]
> > Session.Timeout=value[color=darkred]
> > > Second: Problem I'm having is understanding what controls what![/color]
> > Basically, I need the capability for most data entry aspx web pages to[/color][/color]
be[color=blue][color=green]
> > say 20 minutes timeout. One other data entry aspx web page I would like[/color][/color]
to[color=blue][color=green]
> > be 60 minutes. I'm having a problem doing this.
> >[color=darkred]
> > >> overriding current session timeout[/color]
> >[color=darkred]
> > > Question(1) - Can you dynamically vary the session timeout for[/color][/color][/color]
different[color=blue][color=green]
> > aspx web pages - and if so HOW would I do this.
> >[color=darkred]
> > >> do it on the page, note once changed, it stays changed until the next[/color]
> > session
> >[color=darkred]
> > > Question(2) - Where can I understand BEST the relationship between all[/color][/color][/color]
the[color=blue][color=green]
> > ways to change the timeout values - i.e., does each method discussed[/color][/color]
above[color=blue][color=green]
> > work to change the session timeout.
> >[color=darkred]
> > > PLEASE ADVISE.[/color]
> >
> >
> >[/color][/color]