Welcome Guest, Not a member yet? Register   Sign In
Problem with saving session
#1

(This post was last modified: 06-15-2022, 10:35 PM by cifogesu.)

Hello, I have move an old project to new server and i have an problem with session on codeigniter 3.
My session is not save.
I use database for store my session.
I have remark that in my cookie my value change each time that i reload page, but my cookie is well inserted in database.

My config
PHP Code:
$config['base_url'] = 'https://192.168.1.35/';


$config['sess_driver']            'database';
$config['sess_cookie_name']        'ci_session';
$config['sess_save_path']          'ci_sessions';
$config['sess_expiration']        7200;
$config['sess_match_ip']          true;
$config['sess_time_to_update']    300;
$config['sess_regenerate_destroy'] = false;

$config['cookie_prefix']  '';
$config['cookie_domain']  '';
$config['cookie_path']    '/';
$config['cookie_secure']  false;
$config['cookie_httponly'] = false


My Code
PHP Code:
$this->load->library('session');

        var_dump($this->session->userdata('test'));

        echo '<br>';

        $this->session->set_userdata('test'5645);

        var_dump($this->session->userdata('test'));
        exit();
    


also check this sites:
https://adultcams.name/
https://sexcams.name/
https://livesexcams.name/
Reply
#2

Invalid URL:

https://192.168.1.35/
Reply
#3

192.168. is a private IP range for internal networks and isn't accessible from the internet.

cifogesu: If you are accessing this on an internal network, that's fine. If it's accessed over the internet, then this won't work.
Reply
#4

For sake of god move to ci4
Ci3 is outdate project
Ci4 has many advantages to develop massive project
Enlightenment  Is  Freedom
Reply
#5

(This post was last modified: 06-09-2021, 06:37 AM by craig.)

@paliz If you've already got a massive project, then it's a massive job to convert it from CI3 to CI4. That takes time and not everyone has that luxury.
Reply
#6

less then 2 day you are fully  understande ci4 its same ci3 but more better
Enlightenment  Is  Freedom
Reply




Theme © iAndrew 2016 - Forum software by © MyBB