ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

session expiration when I clicked back button.

January 26, 2012 12:52am

Subscribe [2]
  • #1 / Jan 26, 2012 12:52am

    asrock

    1 posts

    Hi guys.

    I have used session correctly for login part of my project.
    But, I found a severe problem that all session information was expired after I click ‘back’ button in IE.
    When I tested it all the other browser such as FF, Chrome, Safari, it doesn’t cause the problem. But, only IE expired all session data and created new session_id.

    Please give me your help.

    $config['sess_cookie_name']  = 'ci_session';
    $config['sess_expiration']  = 7200;
    $config['sess_expire_on_close'] = FALSE;
    $config['sess_encrypt_cookie'] = FALSE;
    $config['sess_use_database'] = TRUE;
    $config['sess_table_name']  = 'ci_sessions';
    $config['sess_match_ip']  = FALSE;
    $config['sess_match_useragent'] = FALSE;
    $config['sess_time_to_update'] = 300;
    
    $config['cookie_prefix'] = "";
    $config['cookie_domain'] = "";
    $config['cookie_path']  = "/";
    $config['cookie_secure'] = FALSE;

     

  • #2 / Jan 26, 2012 1:21am

    InsiteFX

    6819 posts

    Remove the underscore out of the sess_cookie_name

    Should be cisession not ci_session

    IE doe’s not like the underscore!

    Also IE has to be setup to use session cookies in the advanced options.

  • #3 / Jan 26, 2012 2:49am

    asrock

    1 posts

    Thanks for reply.

    It doesn’t work. haha;;
    And, I can’t recommend to every user using IE to set session cookies in the advanced options.

    If is there any server-side solution, please let me know.

  • #4 / Jan 26, 2012 6:10am

    InsiteFX

    6819 posts

    If it doe’s not work then you have other problems! I use CI Sessions everyday with no problems.

    Maybe you are using the wrong session table.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases