Jsession, cookie, storing data locally Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
brzadmin

Jsession, cookie, storing data locally

Post by brzadmin » Wed Dec 19, 2007 11:35 am

Could someone point me in the direction of a good tutorial for storing data locally?

My dilemma, i have never ventured into cookies.

I have a flash.swf file with a variable that i want to end up in my database.

I use joomla for user registration, then i have a wrapped php file which saves extra user details into another mysql DB.

So basically variable from swf file saved locally in jsession cookie.
then accessed later by wrapped php file.

I have chosen this method after abandoning, hacking the wrapper.html.php file as mentioned by toubakl.

hannul wrote:$session =& JFactory::getSession();
$session->set("thename",'thevalue','if one to protect with namespace, the namespace');



$var = $session->get('the name', 'default', 'namespace');

Namespace means, that if two different things are using same variable (lets say plugin and module), then using namespace would prevent them to be overriden.

This is interesting, where to i use it?

Post Reply