How to create endless cookie?

Total Post:89

C#  ASP.Net 
 1233  View(s)
Rate this:
i'm want to make endless cookie how to possible
  1. Post:194

    Re: How to create endless cookie?

    Not strictly endless, but you can set the cookie lifetime to two years or so which comes pretty close:

    ·         session.cookie-lifetime ini setting

    ·         session_set_cookie_params()Docs function to set them programmatically.

    The session cookie won't be deleted then if the user closes the browser.

    Take care that your session data store keeps the data as well that long. This is important. And keep in mind that you need to store all user's data for this large time-span, so you should have enough space available.

    This does not work at all if the user disables cookies in her or his browser.

      Modified On Apr-05-2018 06:41:55 AM