Welcome Guest, Not a member yet? Register   Sign In
Problem with session_start()
#1

I have a problem with the CAS authentication library in CI3. In CI2.x worked perfectly but with the CI3, the session has been re-designed and it seems to have problems with this library.

This is the error I get:

Code:
A PHP Error was encountered

Severity: Runtime Notice

Message: session_start() [function.session-start]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead

Filename: CAS/Client.php

Line Number: 3620

Code:
A PHP Error was encountered

Severity: Error

Message: session_start() [function.session-start]: Failed to initialize storage module: user (path: C:\Windows\Temp)

Filename: CAS/Client.php

Line Number: 3620

Here is my config.php settings:

PHP Code:
$config['sess_driver'] = '[color=#ff3366]database[/color]';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = '[color=#ff3366]ci_sessions[/color]';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE

Note that I'm using a table called 'ci_session' in my database to store the session as stated in the CI3 user manual. It works perfectly but once I load the CAS library I get the previous error in the session_start() line.

CAS library
https://github.com/eliasdorneles/code-ig...as-library
Someone wrote a code for easily integrate phpCAS into Codeigniter 2.X but it is no longer mantained nor updated to CI3.

For me, it is mandatory to use the CAS authentication method, any ideas on how to fix this error or use another alternative CAS client?

Thank you very much.
Reply


Messages In This Thread
Problem with session_start() - by Mitteg - 01-29-2016, 05:28 AM
RE: Problem with session_start() - by moshair - 01-29-2016, 07:08 AM
RE: Problem with session_start() - by Mitteg - 01-29-2016, 07:27 AM
RE: Problem with session_start() - by josepostiga - 01-29-2016, 07:36 AM
RE: Problem with session_start() - by Mitteg - 02-01-2016, 12:27 AM
RE: Problem with session_start() - by moshair - 01-29-2016, 12:16 PM
RE: Problem with session_start() - by Mitteg - 02-05-2016, 04:36 AM
RE: Problem with session_start() - by Mitteg - 02-08-2016, 04:05 AM
RE: Problem with session_start() - by mwhitney - 02-09-2016, 08:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB