CodeIgniter Forums
Session Class failing to initialize on Refresh - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Session Class failing to initialize on Refresh (/showthread.php?tid=58635)



Session Class failing to initialize on Refresh - El Forum - 07-02-2013

[eluser]Unknown[/eluser]
Hi All

I seem to have hit a road block with the dear old CI session library. When a page first loads, everything loads fine, and the log files look like this:

Code:
DEBUG - 2013-07-02 14:40:25 --> Config Class Initialized
DEBUG - 2013-07-02 14:40:25 --> Hooks Class Initialized
DEBUG - 2013-07-02 14:40:25 --> Utf8 Class Initialized
DEBUG - 2013-07-02 14:40:25 --> UTF-8 Support Enabled
DEBUG - 2013-07-02 14:40:25 --> URI Class Initialized
DEBUG - 2013-07-02 14:40:25 --> Router Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Output Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Security Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Input Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Global POST and COOKIE data sanitized
DEBUG - 2013-07-02 14:40:26 --> Language Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Loader Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Helper loaded: url_helper
DEBUG - 2013-07-02 14:40:26 --> Helper loaded: string_helper
DEBUG - 2013-07-02 14:40:26 --> Database Driver Class Initialized
DEBUG - 2013-07-02 14:40:26 --> Session Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Config Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Hooks Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Utf8 Class Initialized
DEBUG - 2013-07-02 14:40:45 --> UTF-8 Support Enabled
DEBUG - 2013-07-02 14:40:45 --> URI Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Router Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Output Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Security Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Input Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Global POST and COOKIE data sanitized
DEBUG - 2013-07-02 14:40:45 --> Language Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Loader Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Helper loaded: url_helper
DEBUG - 2013-07-02 14:40:45 --> Helper loaded: string_helper
DEBUG - 2013-07-02 14:40:45 --> Database Driver Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Session Class Initialized
DEBUG - 2013-07-02 14:40:45 --> A session cookie was not found.
DEBUG - 2013-07-02 14:40:45 --> Session routines successfully run
DEBUG - 2013-07-02 14:40:45 --> Controller Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Config file loaded: application/config/ion_auth.php
DEBUG - 2013-07-02 14:40:45 --> Session class already loaded. Second attempt ignored.
DEBUG - 2013-07-02 14:40:45 --> Language file loaded: language/english/ion_auth_lang.php
DEBUG - 2013-07-02 14:40:45 --> Model Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Model Class Initialized
DEBUG - 2013-07-02 14:40:45 --> Helper loaded: cookie_helper
DEBUG - 2013-07-02 14:40:45 --> Helper loaded: date_helper
DEBUG - 2013-07-02 14:40:45 --> Session class already loaded. Second attempt ignored.
DEBUG - 2013-07-02 14:40:45 --> File loaded: application/views/content/login.php
DEBUG - 2013-07-02 14:40:45 --> File loaded: application/views/layout/main.php
DEBUG - 2013-07-02 14:40:45 --> Final output sent to browser
DEBUG - 2013-07-02 14:40:45 --> Total execution time: 0.3642

When the page refreshes, however, it seems to stop loading once it gets to the Session Library (log file shown below). The page will only load again properly if I manually delete the cookie. This happens in both Chrome and Firefox.

Code:
DEBUG - 2013-07-02 14:41:00 --> Config Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Hooks Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Utf8 Class Initialized
DEBUG - 2013-07-02 14:41:00 --> UTF-8 Support Enabled
DEBUG - 2013-07-02 14:41:00 --> URI Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Router Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Output Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Security Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Input Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Global POST and COOKIE data sanitized
DEBUG - 2013-07-02 14:41:00 --> Language Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Loader Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Helper loaded: url_helper
DEBUG - 2013-07-02 14:41:00 --> Helper loaded: string_helper
DEBUG - 2013-07-02 14:41:00 --> Database Driver Class Initialized
DEBUG - 2013-07-02 14:41:00 --> Session Class Initialized

Anybody have any ideas what might be causing it to hang?