1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SMF session bug!!! suggest me something, please

Discussion in 'Forum Management' started by intoex, Feb 3, 2007.

  1. #1
    Ok, here is a problem. I have a forum, SMF 1.1.1 (latest version)

    I have logged in under administrator.
    After some time, when I try to do something, I get a message

    Session verification failed. Please try logging out and back in again, and then try again.

    But I can't logout, because I get the same messsage. I can continue work, when I delete cookies.

    Help me please. Have no time to understand this code and correct. I think, the problem is general and there is solution to fix this problem.

    Thank you,
    Alex
     
    intoex, Feb 3, 2007 IP
  2. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have explored SMF sources. Seems, the problem in Security.php module, in checkSession function.
    Something, like session id from the request and session id from session not equal.
    If somebody have experience, let me know please
     
    intoex, Feb 3, 2007 IP
  3. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try this:
    Server Settings --> Feature Configuration --> Use database driven sessions
     
    Diether, Feb 3, 2007 IP
  4. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I find this problem with this option, or without.
     
    intoex, Feb 3, 2007 IP
  5. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Also tried to enable the other cookie settings?
    - Enable local storage of cookies
    - Use subdomain independent cookies
     
    Diether, Feb 3, 2007 IP
  6. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If use second, then I need to turn off local
    I try first, will look at result

    I think, the problem in difference of lifetime for php session and cookie session, maybe I'm wrong

    thank you,
    p.s. do you also use SMF?
     
    intoex, Feb 5, 2007 IP
  7. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I'm indeed also an SMF user.
    Use it on both my forums :)
     
    Diether, Feb 5, 2007 IP
  8. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hm, the problem exists...
     
    intoex, Feb 5, 2007 IP
  9. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Weird... Have you asked this on the SMF forum aswell?

    You can also try to change the default cookie lifetime lenght and "Seconds before an unused session timeout".
    But to be honest I got no idea what the cause of it is.

    Have you installed any mods?
     
    Diether, Feb 5, 2007 IP
  10. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No mods, default layout
    asking about it on SMF community, but still no result
    seems, then don't know theirselves :)
     
    intoex, Feb 7, 2007 IP
  11. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I don't know it either to be honest ;)
    But it should be related to your cookies for some reason.
    Perhaps try to rename them?
     
    Diether, Feb 7, 2007 IP
  12. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You think, it will help?
    I don't know, how session id is generated, my I think, cookie session id and current php session id are different
     
    intoex, Feb 8, 2007 IP
  13. Diether

    Diether Peon

    Messages:
    278
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Well, it must be something on your side I believe.
    Am also running 1.1.1, but without any problems.

    Have you tried it from other computers?
    Care to give me a link to your forum. I'll sign up and see if I get errors aswell.
     
    Diether, Feb 8, 2007 IP
  14. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hm, perhaps,
    But the problem is present, and I want to solve it :)
    On my windows apache all is ok
     
    intoex, Feb 8, 2007 IP