|
-
Oct 28th, 2010, 09:36 AM
#1
Thread Starter
Hyperactive Member
-
Oct 28th, 2010, 11:51 AM
#2
Re: Need idea or code for alive session...
What actions keep the session alive? Scrolling, clicking, mouse moves over the page, moving the window, etc, etc? I think you should try to define that first so you have more than one option.
-
Oct 29th, 2010, 11:48 AM
#3
Thread Starter
Hyperactive Member
-
Oct 29th, 2010, 01:32 PM
#4
Lively Member
Re: Need idea or code for alive session...
How about setting the Power Options in Control Panel?
"The most important quality a programmer must have is persistence."
-
Oct 31st, 2010, 12:14 PM
#5
Thread Starter
Hyperactive Member
-
Oct 31st, 2010, 12:25 PM
#6
Re: Need idea or code for alive session...
Details? Sure. What exactly is loosing the session? Is it a page within a webbrowser or a remote connection/desktop?
If it is a page in a webbrowser, I'd think we'd have to know what actions keep it alive in order to help (post #2 above).
-
Nov 1st, 2010, 09:07 AM
#7
Thread Starter
Hyperactive Member
-
Nov 1st, 2010, 09:52 AM
#8
Re: Need idea or code for alive session...
If manipulating the RTF keeps session alive and it has a scrollbar, maybe just moving the scrollbar up/down will keep it alive. If that's true, then getting the rtf handle and sending it a WM_VSCROLL or WM_HSCROLL message may do the trick.
-
Nov 1st, 2010, 10:15 AM
#9
Re: Need idea or code for alive session...
What keeps the session alive is communication between the client and the server... action on the client alone won't (or shouldn't) keep the session alive. When information is sent from the client to the computer, part of the data is a SessionID... the server then uses this ID to maintain the session information on the server. At the same time, it will update the expire date, keeping it alive. However, if too much time passes and the session expires... when you then try to submit the SessID, if it is no longer valid, because it expired, your session "times out".
-tg
-
Nov 1st, 2010, 10:22 AM
#10
Re: Need idea or code for alive session...
@techgnome. I think part of the problem is that the OP doesn't know what actions (mouse/keyboard) will trigger the page to update the keep alive token/time. It might be something as simple as moving a mouse over the page, minimizing/restoring, setting focus after losing focus, and a host of other possibilities. I know with one of my online banks, session will time out rather quickly if I don't do anything with the page like selecting one of the page's menus for example.
The OP sounds like he is unsure of what keeps it alive and wants to create a bot of some sort to keep it alive.
-
Nov 1st, 2010, 11:41 AM
#11
Re: Need idea or code for alive session...
"like selecting one of the page's menus for example." -- that was my point... simply moving the mouse doesn't normally generate server activity... but something like clicking a link does... so simply moving the mouse and/or copying/pasting data isn't going to cut it. Clicking on something would.
Now... the next question is... why is it necessary to keep the session alive? Clearly the timeout of the session is set to the time that it is for a reason.
-tg
-
Nov 4th, 2010, 12:09 PM
#12
Thread Starter
Hyperactive Member
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|