Re: Verifying the user is connected

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Robert,

Technically, after each page is delivered to the client the user is no
longer connected to your website.

That is why session state was invented. Session state is simply a timer that
gets reset every time a user connects to the server. How does the server
know which user is currently connecting? The first time a "new" user
connects to the server and begins a new session a cookie is stored on the
server.

I would suggest that you use the user session to check if a user is still
connected and set it for longer than a single connection to your iFrame
refresh. So if your iFrame refreshes once a minute and you want to give a
user up to three tries to connect set your session timeout to three minutes
and twenty seconds or something similar to that logic.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Robert Scheer" <rbscheer@xxxxxxxxxxx> wrote in message
news:1127015993.765497.233230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi.
>
> My site needs to know if the user is connected before executing some
> queries on my database. Actually, I have a page loaded by an Iframe
> that runs every 30 seconds and updates a field on my database to tells
> me the user is connected. If this field is not updated for more than
> one minute I consider the user disconnected.
>
> The problem is, if that page does not load for any anormal reason (an
> IIS error like Page Could not be Loaded, for example), my database
> won't be updated, but the user is connected!
>
> What is the best way to detect a user is connected on your site? I read
> about an element on the Machine.config file called
> clientConnectedCheck. Can it be used for that kind of verification?
>
> Thanks,
> Robert Scheer
>


.



Relevant Pages

  • Re: RDP and pcAnywhere
    ... Now, I go to a remote computer and do mstsc -v:servername -console to connect to the server using the same account, I will NOT see that My Documents folder opened. ... apparently the server created a separate session for me to connect remotely using the -console. ... The -admin switch works as well, but I didn't see a difference, but then again, I was only connecting to a session I had previously had opened under my own account, and have not tested it further to shadow another user's session by barrellin in, as the article implies. ...
    (microsoft.public.windows.server.general)
  • FTP problem, Internet Explorer, IIS 5.0
    ... I can get regular FTP software ... I can send remote commands via a DOS session: ... server. ... Connecting via ftp programs, ...
    (microsoft.public.windowsxp.general)
  • FTP problem, Internet Explorer, IIS 5.0
    ... I can get regular FTP software ... I can send remote commands via a DOS session: ... server. ... Connecting via ftp programs, ...
    (microsoft.public.inetserver.iis)
  • Re: Remote Connection
    ... and then further connecting to a desktop client at the ... > office through the server. ... > services manager" when this occurs and indeed the connection remains ... > I have leanred how to manually disconnect the session from TS manager. ...
    (microsoft.public.windows.server.sbs)
  • logon failed existing session winstation error
    ... "error connecting to existing sessions for JDOE " ... No unusual errors in the XP box or server logs, ... As I workaround I created a second account for the user. ... clear this session that does not show up as session? ...
    (microsoft.public.windowsxp.work_remotely)