Results 1 to 12 of 12

Thread: Need idea or code for alive session...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    272

    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...
    DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    272

    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......
    DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

  4. #4
    Lively Member
    Join Date
    Sep 2009
    Location
    Florida
    Posts
    75

    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."

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    272

    Re: Need idea or code for alive session...

    Anyone please....Waiting for the replay..if you want more details I will give....
    DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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).
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    272

    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...
    DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

  8. #8
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  11. #11
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    272

    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 :-)
    DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

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
  •  



Click Here to Expand Forum to Full Width