Need idea or code for alive session...
Can anyone please give me idea to create vb6 application that can alive my client page (running in IE7 .net page) when I am away from my computer...basicaly it is sessioning out in 10 minutes of time...Please share if you know experienced this situatino....I tried to send Anonymous keycodes using sendmessage no use...Help me please very urgent...
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.
Re: Need idea or code for alive session...
Sorry..... I dont know what we have to do keep session alive...thats why i am asknig here...please help me......
Re: Need idea or code for alive session...
How about setting the Power Options in Control Panel?
Re: Need idea or code for alive session...
Anyone please....Waiting for the replay..if you want more details I will give....
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).
Re: Need idea or code for alive session...
Yes the page in a webbrowser(Only IE7 rarely IE8) other browsers does not support our page. I dont know what actions I need to do to keep session alive..I am currently clicking, and typing something in RTF box(client ocx) every 2 minutes...
Please note I canot get the handles of rtf box...
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.
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
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.
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
Re: Need idea or code for alive session...
Thank you all... Techgnome is right, moving the mouse or typing something does not help me to keep the session alive. So I am going to click the page link that will send some information to server and pop up a window...This is the first time I am handling IE related Handles...So I may not know how to do that...I need to search for references...One thing I know, I will definitely open a new thread :-)