Session Cookies Attributes are not set properly |
how to Set the Secure and Domain attributes for the session cookie
and Set the value of the Path attribute to the actual virtual directory path of the application If the application resides at /myapp/, then verify that the cookie path is set to; path=/myapp/ and not to; path=/. I set this in config.php $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = ' myappa'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = NULL; $config['sess_match_ip'] = TRUE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = TRUE; but it will not work properly .
CodeIgniter 4 User Guide - Session Preferences
CodeIgniter 4 User Guide - Accessing Cookie’s Attributes What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I'm expecting like this. using ci version -3.1
eg, If the application resides at /myapp/, then verify that the cookie path is set to; path=/myapp/ and not to; path=/.
CI 3
In addition to the values above, the cookie and native drivers apply the following configuration values shared by the Input and Security classes: Preference Default Description cookie_domain ‘’ The domain for which the session is applicable cookie_path / The path to which the session is applicable cookie_secure FALSE Whether to create the session cookie only on encrypted (HTTPS) connections Note: The ‘cookie_httponly’ setting doesn’t have an effect on sessions. Instead the HttpOnly parameter is always enabled, for security reasons. Additionally, the ‘cookie_prefix’ setting is completely ignored. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |