Welcome Guest, Not a member yet? Register   Sign In
CI4 running in apache server virtualhost. Failed to decode session object.
#1

(This post was last modified: 10-21-2019, 08:27 PM by gentlemanoi.)

Requesting multiple connection to the server using session() will return an error.

session_start(): Failed to decode session object. Session has been destroyed

I am using a virtualhost in my wampp server to connect to the public folder of CI4. Every time I have concurrent request to the server I will get this error and will redirect to the login page because the session was destroyed. 

I also added the line below to my virtualhost to save the sessions on a specific project.
php_value session.save_path "${INSTALL_DIR}/www/CI4/writable/session"

I got this error on php logs:

Quote:PHP Fatal error:  Uncaught ErrorException: Unknown: Cannot call session save handler in a recursive manner in Unknown:0

Do you have any idea about this? or can you recommend other way to point the specific project to the public folder? I can't change my DocumentRoot because there are multiple projects on my server.
Reply


Messages In This Thread
CI4 running in apache server virtualhost. Failed to decode session object. - by gentlemanoi - 10-21-2019, 07:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB