---
title: "Ci Session data does not accept some browser on some computer"  
description: "Ci Session data does not accept some browser on some computer"  
author: "Anonymous User"  
published: 2014-10-31  
updated: 2014-10-31  
canonical: https://www.mindstick.com/forum/2480/ci-session-data-does-not-accept-some-browser-on-some-computer  
category: "asp.net"  
tags: ["session"]  
reading_time: 1 minute  

---

# Ci Session data does not accept some browser on some computer

I use CI for my website. And I have a [login](https://www.mindstick.com/articles/12852/styles-login-form-in-android) page. But in some browsers on some computers I can't login to the [system](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business), because no userdata is [stored](https://www.mindstick.com/forum/157561/what-is-the-stored-procedure-create-a-procedure-to-find-the-record-by-stu_id-from-the-student-table) in browser. I can't [figure](https://yourviews.mindstick.com/view/87536/what-are-ghosts-jobs-and-how-to-figure-out-them) out what is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between the (PC+Browser)s which can and can't login.

## Replies

### Reply by Anonymous User

If you are using database for storing your CI sessions (table ci_sessions), make sure you change the default UserAgent field to VARCHAR 250 or something like that. Right now I think it's something rather small that doesn't accomodate the entire UserAgent. That way, I think the browser isn't identified

A second cause could be that you need to open config/config.php and edit this section

```
$config['cookie_prefix']    = "prefix";
$config['cookie_domain']    = "localhost";
$config['cookie_path']  = "/";
$config['cookie_secure']    = TRUE;
```

And change\

```
$config['cookie_domain']    = "YOUR_DOMAIN";
```

Make sure YOUR_DOMAIN is a valid domain that your website is running on. Do not use IPs or localhost.\


---

Original Source: https://www.mindstick.com/forum/2480/ci-session-data-does-not-accept-some-browser-on-some-computer

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
