Announcement

Collapse
No announcement yet.

Cookies & staying logged

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cookies & staying logged

    Yop,

    I've noticed that on the www.armenianclub.com, I simply can't stay logged in more than one day. On the other hand, the forum works fine

    Can you help me ?
    Thks

  • #2
    I have the same exact problem, the cookie expiration date needs to be set for a longer period of time

    Comment


    • #3
      Originally posted by Dimava I have the same exact problem, the cookie expiration date needs to be set for a longer period of time
      The one with the forum works well though. Why not using the same ?

      Comment


      • #4
        the Content end of the site probably uses a different database, with its own users table, unrelated to the forums, so the username/passwords wouldn't necessarily be the same for both, and that wouldn't work with the same cookie

        unless you wanted to get really complicated and have the site and the forums check for existing cookies and add more than one login per cookie, i suppose its possible but a little too complicated

        Comment


        • #5
          Originally posted by Dimava the Content end of the site probably uses a different database, with its own users table, unrelated to the forums, so the username/passwords wouldn't necessarily be the same for both, and that wouldn't work with the same cookie

          unless you wanted to get really complicated and have the site and the forums check for existing cookies and add more than one login per cookie, i suppose its possible but a little too complicated

          No !!! I was just saying using the same technique and parameters, not the same cookie

          Comment


          • #6
            ya, forum and main site use separate databases, so the cookie settings are different on both.

            But i'll see what can be done to increase the 'keep signed on' on the main site.
            Welcome to the HyeClub Forum!

            Comment


            • #7
              you can use this code to set cookies:

              PHP Code:
                  $expire=time() + 60*60*24*365;
                  
              $cookiepath="/"
                  
              setcookie($username$password$expire$cookiepath); 

              Comment

              Working...
              X