Welcome Guest, Not a member yet? Register   Sign In
Internet explorer problem sessions
#1

[eluser]OnurTEZ[/eluser]
Thank you in advance;

İnternet explorer session not open, No problem with other browsers

Controller my file:
Code:
function giris_kontrol()
    {
        //post ıle gelenler degıskenlere atandı
        $email = $this->input->post('email');
        //$sifre =  md5(sha1($this->input->post('sifre'));
        $sifre2 =  $this->input->post('sifre');
        $sifre = sha1(strtolower($email) . ($sifre2));
        $kullanici = $this->uyelik_model->kullanici_bul($email,
$sifre);
       if( !$kullanici )
                {
                        $this->session->set_flashdata('uyari', 'Giriş başarısız';
                        redirect(site_url('uyelik/giris_ekrani');
                }
                else
                {
                        if( !class_exists('CI_Session' ) $this->load->library('session';
                           $durum = $kullanici->yasak;
                        if($durum == "1"
                         {
                        $session_bilgileri = array(
                                'email' => $kullanici->email,
                                'ad_soyad' => $kullanici->ad_soyad,
                                'seviye' => $kullanici->seviye,
                                'uye' => TRUE
                        );
                        $this->session-
>set_userdata($session_bilgileri);
                        redirect(site_url('uyelik/bana_ozel');
                        }
                        elseif($durum == "0"
                         {
                        $this->session->set_flashdata('uyari', 'Hesabınız Engellenmiş!';
                        redirect(site_url('uyelik/giris_ekrani');
                        }
                }
        $this->session->set_flashdata('hata', 'Bilgileriniz Eksik Yada
Yalnış!';
        redirect(site_url('uyelik/giris_ekrani');
    }
#2

[eluser]OnurTEZ[/eluser]
brackets do not appear here :S
#3

[eluser]InsiteFX[/eluser]
you need to change the ci_sessions to cisessions for the cookie in application/config/config.php

Also you may need to change IE Internet options for cookies!

InsiteFX
#4

[eluser]OnurTEZ[/eluser]
Thank you for the reply, Full olarka What should I do ?
#5

[eluser]InsiteFX[/eluser]
1) click tools on IE menu and click on Internet options
2) click on the Privacy tab button
3) click on the Advanced button

This is where you set your Internet cookie options

InsiteFX
#6

[eluser]OnurTEZ[/eluser]
[quote author="InsiteFX" date="1300722801"]1) click tools on IE menu and click on Internet options
2) click on the Privacy tab button
3) click on the Advanced button

This is where you set your Internet cookie options

InsiteFX[/quote]

some internet explorer browsers give error at sessions. i cant repair some errors with setflash . its not what did you tell me problems Sad(
#7

[eluser]InsiteFX[/eluser]
If you do a redirect then you should use:
Code:
$this->session->keep_flashdata();

Flashdata is only good for one time unless you use keep_flashdata..

Also make sure your cookie name is not ci_session it will fail with the under-score.

Code:
$config['sess_cookie_name']    = 'cisession';
$config['sess_expiration']    = 7200;
$config['sess_expire_on_close']    = FALSE;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']    = 'ci_sessions';
$config['sess_match_ip']    = FALSE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']    = 300;

InsiteFX
#8

[eluser]OnurTEZ[/eluser]
Code:
Veritabanında bir hata oluştu.
Error Number: 1146

Table 'oparam_yeni.ci_sessions' doesn't exist

INSERT INTO `ci_sessions` (`session_id`, `ip_address`, `user_agent`, `last_activity`) VALUES ('dc6ad81bb580461e1d29ae5c03021a60', '78.163.13.225', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) Ap', 1300709622)

Filename: libraries/Session.php

Line Number: 326
#9

[eluser]InsiteFX[/eluser]
Well you never said that before! you have to create the ci_sessions table.

Code:
-- --------------------------------------------------------------

--
-- Table structure for CodeIgniter ci_sessions.
--
DROP TABLE IF EXISTS `ci_sessions`;

CREATE TABLE IF NOT EXISTS  `ci_sessions` (
  `session_id`    varchar(40)          DEFAULT '0' NOT NULL,
  `ip_address`    varchar(16)          DEFAULT '0' NOT NULL,
  `user_agent`    varchar(50)                      NOT NULL,
  `last_activity` int(10)     unsigned DEFAULT 0   NOT NULL,
  `user_data`     text                 DEFAULT ''  NOT NULL,
  PRIMARY KEY (session_id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;

--  `user_data` text       DEFAULT '' NOT NULL,
--  `user_data` mediumtext DEFAULT '' NOT NULL,
--  `user_data` longtext   DEFAULT '' NOT NULL,

InsiteFX
#10

[eluser]OnurTEZ[/eluser]
[quote author="InsiteFX" date="1300728367"]Well you never said that before! you have to create the ci_sessions table.

Code:
-- --------------------------------------------------------------

--
-- Table structure for CodeIgniter ci_sessions.
--
DROP TABLE IF EXISTS `ci_sessions`;

CREATE TABLE IF NOT EXISTS  `ci_sessions` (
  `session_id`    varchar(40)          DEFAULT '0' NOT NULL,
  `ip_address`    varchar(16)          DEFAULT '0' NOT NULL,
  `user_agent`    varchar(50)                      NOT NULL,
  `last_activity` int(10)     unsigned DEFAULT 0   NOT NULL,
  `user_data`     text                 DEFAULT ''  NOT NULL,
  PRIMARY KEY (session_id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;

--  `user_data` text       DEFAULT '' NOT NULL,
--  `user_data` mediumtext DEFAULT '' NOT NULL,
--  `user_data` longtext   DEFAULT '' NOT NULL,

InsiteFX[/quote]

user_data table is empty
normalIs that?




Theme © iAndrew 2016 - Forum software by © MyBB