+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: member to be logged in all the time?

  1. #1
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Question member to be logged in all the time?

    Is it possible to make a members to be logged in all the the time. what i mean is for an example if you have an google account it never logs you out if you just close your browser. you acctully must click logout to be logged out.

    why i am asking is when my members get an mail at another member have looked at there profile, the mail includes a photo of the person that just looked at your profile but to see the photo in your mail you need to be loged in. i think match have this thing also.

    is this possible? i hope you understand my questions guys.

    Warm regards Anders
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    You can set the cookie for the users to expire some date in the future (2010 for example) which will make it an persistent cookie - and thus, be available (if allowed in their browser settings) to be used in future browser sessions.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default cookies fantastic

    thx smoge, fantastic exactly what i wanted but where is this cookie settings, cant remember where to find it? do you know? i just find this in logout.php, is this that should be change? what one should be change 48 or 3600 to ex.2010

    i am confused as always i just find many setcookie in the files what one should be change, any ides smoge?

    setcookie( 'memberID', $_COOKIE['memberID'], time() - 48 * 3600, '/' );
    setcookie( 'memberPassword', $_COOKIE['memberPassword'], time() - 48 * 3600, '/' );
    Regards anders
    Last edited by birkenstam; 01-15-2008 at 01:11 PM.
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    Yes - you found the right place.

    Here is a Google link for info on cookie expiration:

    http://www.google.com/search?hl=en&s...ookies&spell=1

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    thx again smoge,

    could you just tell me if 48 or 3600 should be changed to year 2010.
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  6. #6
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    You will notice that there are 4 lines in the cookie setting code.

    The first two lines expire the old cookie.

    The last two lines set the new cookie. Since 0 is used, it is a session cookie. Dies after the browser is closed. You should config the 0 to some future date, making it a persistent cookie.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  7. #7
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    is this the line
    if ( strcmp( $action, 'member_logout' ) == 0
    that need to be change?
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  8. #8
    birkenstam's Avatar
    Join Date
    Mar 2006
    Posts
    205

    Default

    it works perfect now i change the zero at the end to 2010
    if ( strcmp( $action, 'member_logout' ) == 0
    thx smoge
    Regards Anders
    I wish i could code
    My specialities Copy Paste with instruction
    swedish dating version dolphin 6.1.5

  9. #9

    Join Date
    Jan 2008
    Posts
    72

    Default

    Very interesting. I have noticed that I have an issue where if someone is surfing across the site, then their icon is removed from the top of the page and replaced with the "Join Now - Member Login" text. If you click the link to log in, then the account information is displayed without entering user name/password, since they are already logged in.

    My guess is that a cookie wont fix this, but it's probably not a bad idea anyway.
    Dolphin 6.0.0003 + Ray 3.0 Modded

  10. #10

    Join Date
    Jul 2008
    Posts
    26

    Default

    where can we find this?

    Code:
    setcookie( 'memberID', $_COOKIE['memberID'], time() - 48 * 3600, '/' );
    setcookie( 'memberPassword', $_COOKIE['memberPassword'], time() - 48 * 3600, '/' );

+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Member's Online Time in Profile View
    By bigal0228 in forum Free Mod Exchange
    Replies: 0
    Last Post: 02-09-2008, 11:45 AM
  2. Replies: 0
    Last Post: 09-01-2006, 05:06 PM
  3. Replies: 10
    Last Post: 05-05-2006, 04:14 PM
  4. Non-Logged In Member Can't View Profiles
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 14
    Last Post: 10-31-2005, 12:43 AM
  5. Replies: 3
    Last Post: 10-06-2005, 07:10 AM

Bookmarks

Posting Permissions

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