Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post

    Session() Expiry?

    I need a 100% sure answer on this please. 110% sure would be better.

    For a Session variable, can I set the expiry date, or is there an expiry date on it? Am I able to use sessions, and store the sessions as long as I am able to store a cookie on someones computer?

    I need to make sure it stays with the user that loged in, so I am able to make sure he is logged in still when he gets back from his 10 Month vacation.

    Understand?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In that case you better use a persistent cookie - Sessions will timeout in 20 minutes by default, however you can change that with Session.Timeout.

    But 10 months? A cookie is the only thing that would work.

    I'm quite sure you would have rebooted the server at LEAST once in that time, and there's a reason that a session lasts only 20 minutes by default - so they won't eat up memory on the server.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    to have a session for 10 months the browser and PC would have to be in/open for that time, constantly.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #4
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    Ok guys, thank you.

    Just making sure.

    I just figured out my method then!

    Thanks again!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •