Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Grace Caslavka 1 post 20 karma points
    Jul 31, 2009 @ 21:36
    Grace Caslavka
    0

    How do we implement persistent cookies?

    Currently, we are using role based protection to protect pages of our website with a log in. We are having an issue where users are getting logged out within an hour. How can we fix this?

    Also, we would like to implement persistent cookies on some of our sites so that users do not have to log in everytime they visit the site (unless they clear their cookies of course). Anyone know how to go about doing this?

  • Simon Justesen 436 posts 203 karma points
    Jul 31, 2009 @ 22:53
    Simon Justesen
    0

    You could set cookies to expire after a year, see this: http://asp-net-example.blogspot.com/2009/01/aspnet-cookie-example-how-to-set.html

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies