session error |
[eluser]elmne[/eluser]
I tried to use a session by specifying in the php.ini file a location for session.save_path When i tried to load a view, i got the following error Quote:A PHP Error was encountered On line number 47, i have the following Code: // Sessions, start your engines! What's the cause of the error?
[eluser]CI_avatar[/eluser]
If im correct. This error refers to PHP Issue not in codeigniter, because session in codeigniter has nothing to do with $_SESSION variable, session in codeigniter are save id $_COOKIE. no need to set session_start if you use Session Library. Please ask help in php.net, i hope you can gather more information with your concern.
[eluser]CI_avatar[/eluser]
If im correct, this problem does not refer to CI but in PHP. CI Session has nothing to do with $_SESSION variable, CI sessions are save in $_COOKIE (i know it sounds confusing but CI works that way). Please go to php.net, i hope you can gather more information.
[eluser]elmne[/eluser]
The session i'm referring to is based on Codeigniter's Hybrid Session. When the error is generated, it refers to line 47 which is in the session.php in the libraries as shown below. This error happened before i edited the php.ini file, what i should then have asked is this, if information is saved in a cookie, why is it that when i go to the next page, session values are no longer present? In trying to resolve it, one of the things that was suggested was to check the session path but since you say that is immaterial since codeigniter uses cookies, then why does codeigniter's hybrid session not show the session values when i move to a successive page? Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
[eluser]danmontgomery[/eluser]
http://www.google.com/search?q=session_s...+directory http://php.net/manual/en/function.session-start.php Quote:If while testing locally on your Windows machine you get many warnigns like:
[eluser]elmne[/eluser]
[quote author="noctrum" date="1277518684"]http://www.google.com/search?q=session_s...+directory http://php.net/manual/en/function.session-start.php Quote:If while testing locally on your Windows machine you get many warnigns like:[/quote] Thanks for the info, i was able to resolve the error and now sessions can be written to the given path. But codeigniter still fails to show the values of the session to the successive page. It shows values on the first page but when i click another page where the same session values should still be displayed, they don't show up, yet they are placed into the session using the an array and the set_userdata session function Code: $newdata = array( |
Welcome Guest, Not a member yet? Register Sign In |