Session message after insert data

I use CodeIgniter 2.1.0, i store data session in database ci_sessions, i want after insert data in database get a message like "Your information was successfully updated." by set_flashdata and flashdata (that these don't work) now my problem is here that after once click (for insert data in database) store data session in database as following image in two row in first row column user_data is empty but in second row it have data, how can fix it?

Answers


Do you use any AJAX requests on your platform. The session id gets regenerated by default on every 300 seconds.

Try setting the cookie for site-wide usage in config.php file and see if the problem persists after that. Don't forget to delete the browser cookies before trying. Eventually, try setting a prefix

$config['cookie_domain']    = '.yoursite.com'; //Don't forget the dot before the sitename
$config['cookie_prefix']    = "your-cookie-prefix";

Need Your Help

How to download HTML page for temporary use with chrome extension

javascript google-chrome google-chrome-extension vimeo

I'm working on chrome extension for getting a direct link of video from vimeo. So far I can make (?content?) script, where I can get ID from URL link, but there is problem, now I need to downloa...

Database connection string and collation

mysql asp.net-mvc-2 connection-string collation dotconnect

Is it possible to set connection collation within MySql connection string and how, since there's a default setting on the server that's used for new connections.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.