# Client side saving

**URL:** <https://forum.kirupa.com/t/client-side-saving/244957>\
**Category:** programming\
**Created:** [November 24, 2007, 2:04am UTC](https://forum.kirupa.com/t/client-side-saving/244957 "2007-11-24T02:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose3760](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jose3760/32/2887_2.png) [@jose3760](https://forum.kirupa.com/u/jose3760)\
**Post date:** [November 24, 2007, 2:04am UTC](https://forum.kirupa.com/t/client-side-saving/244957/1 "2007-11-24T02:04:33Z")

</div>

Ok, Ive created a log-in set up using Flash Cookies. And suprise suprise it does not work. So to try and troubleshoot the problem area I put  
trace(user.data.firstname);  
and it comes up with “Undefined”.  
So im wondering if the Data is not saving right?  
I was going to post the .fla but it was too big for kirupa, so i tried to make the file smaller but it some how increased in size 😑

Also, here is the code i have on the “Submit Register” button

on(release){  
user.data.name = name;  
user.data.firstname = firstname;  
user.flush();  
trace(user.data.firstname);  
//Tell the user they are registered  
}

And here is the code for the log in section (after you register) - Please not this is not working

on(release){  
//Log user is te username text box and logpass is the password text box  
if(loguser == user.data.firstname && logpass == user.data.name){  
//go to the main game  
//I cant get this to work 😕  
}else {  
}  
}

Thanks,  
Joseph
