Welcome Guest, Not a member yet? Register   Sign In
IE + Hybrid Session = Fail
#1

[eluser]chik3n[/eluser]
Hi,

I wrote an app, I have check it on IE and it dont work, app uses Session so I do some research on google and find out this Hybrid Session library, so I inserted in system/application/libraries and name it Session.php, I also created a table in db for that purpose, describtion from postgresql which I use normally:
Quote:\d ci_sessions
Table "public.ci_sessions"
Column | Type | Modifiers
---------------+------------------------+----------------------------------------
session_id | character varying(32) | not null default ''::character varying
user_agent | character varying(255) | default NULL::character varying
ip_address | character varying(20) | default NULL::character varying
last_activity | integer |
user_data | text |
Indexes:
"ci_sessions_pkey" PRIMARY KEY, btree (session_id)

Part of config file responsible for the session:
Code:
$config['sess_cookie_name']             = 'ci_session';
$config['sess_expiration']              = 1800;
$config['sess_encrypt_cookie']  = TRUE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']              = 'ci_sessions';
$config['sess_match_ip']                = TRUE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 300;

And the code of my simple test app:
Code:
<?php

class Lol extends Controller {
        function lol(){
                parent::Controller();
        }
        function delete_sessiona()
        {
                $this->session->unset_userdata('test');
                $this->session->sess_destroy();
                echo anchor('lol/echo_sessiona','Echo msg').'<br>';
                echo anchor('lol/set_sessiona', 'Set Msg');

//              $this->session->sess_destroy();

        }

function set_sessiona(){
                $this->session->set_userdata('test', 'Test msg');
                echo anchor('lol/delete_sessiona','Delete msg').'<br>';
                echo anchor('lol/echo_sessiona' ,'ECho msg');
}
function echo_sessiona()
{
        echo $this->session->userdata('test');
        echo anchor('lol/delete_sessiona','Delete msg').'<br>';
        echo anchor('lol/set_sessiona', 'Set Msg');
}
}

And the problem, on chrome and mozilla, every thing works fine but on IE it works like this, every time I try to set data i get new row in table with some user_data info, every time I try to echo the msg I get new row in table with new session_id and with no user_data info.

Can some one help me?

I have even changed part of code from this thread:

http://ellislab.com/forums/viewthread/135093/

but it wont work anyways :/.


Messages In This Thread
IE + Hybrid Session = Fail - by El Forum - 05-30-2010, 11:56 AM
IE + Hybrid Session = Fail - by El Forum - 05-30-2010, 01:02 PM
IE + Hybrid Session = Fail - by El Forum - 05-30-2010, 01:52 PM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 02:00 AM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 09:01 AM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 10:38 AM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 11:37 AM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 03:08 PM
IE + Hybrid Session = Fail - by El Forum - 05-31-2010, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB