🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #560

Re: HTTP Session

#560
From: Marc Rohloff TeamB
Date: Wed, 04 Aug 2004 11:46
28 lines
2082 bytes
On Wed, 4 Aug 2004 10:38:53 +0530, Sunil.P.Thomas wrote:

>         The admin of the web site decides that a specific  active user
> should log off.

There is no list of session objects. When a user fetches a page a
session object is created and loaded from some sort of store. The page
is processed and then the session is saved back to the store and the
session object destroyed. It may be 20 minutes before the user
accesses a page again and during that time there will be no session
object for his session.

Solutions:
* You can access the store and change the session there. For example
if you use SQL server as your store it should be easy to run a query
against the database. If you are using a state server it might be
possible you would have to try and find the API for the server.

* Instead of coding in each page write a global handler in the
global.asax file. I would guess you would want to write a handler for
the 'BeginRequest' event.

* Write Page class which does the common work for you. Derive all your
pages from this base class.

-- 
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID: <jc4ifgmzfmmd.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <410f73df$1@newsgroups.borland.com> <1k9szl98zqicj$.dlg@marcrohloff.40tude.net> <41106e3f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,77cbdde8b2374aa7
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: HTTP Session
Newsgroups: borland.public.csharpbuilder.language.csharp
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <410f73df$1@newsgroups.borland.com> <1k9szl98zqicj$.dlg@marcrohloff.40tude.net> <41106e3f@newsgroups.borland.com>
Date: Wed, 4 Aug 2004 07:46:19 -0400
Message-ID: <jc4ifgmzfmmd.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 4.131.39.69
X-Trace: newsgroups.borland.com 1091619965 4.131.39.69 (4 Aug 2004 04:46:05 -0700)
Lines: 28
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail