# Flash cookies

**URL:** https://forum.kirupa.com/t/flash-cookies/10010
**Category:** Uncategorized
**Created:** [December 22, 2002, 5:27pm UTC](https://forum.kirupa.com/t/flash-cookies/10010 "2002-12-22T17:27:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wealoon](https://avatars.discourse-cdn.com/v4/letter/w/7cd45c/32.png) [@wealoon](https://forum.kirupa.com/u/wealoon)
#### Post date: [December 22, 2002, 5:27pm UTC](https://forum.kirupa.com/t/flash-cookies/10010/1 "2002-12-22T17:27:54Z")

</div>

hi

i building a login page and i wana do cookies on it, which i wil be able to retrieve in the mainmenu page.

# on the first frame of my login page i put

user = SharedObject.getLocal(“user\_profile”);

if (go == “true”) { //login successful  
user.data.login = “xuserid” ;  
// xuserid is a userid i pass from a asp page  
user.flush();

```
getURL("mainmenu.html", "_self");	

```

}  
if (go == “false”) { //login unsuccessful  
gotoAndStop(“error”);  
}

=====================================  
is this correct?

and then on the mainmenu.html page , i put on the first frame

===================================

```
    user = SharedObject.getLocal("user_profile");
    currentuserID = user.data.login;

```

===================================

is this correct?

because i cant seen to get the cookie working… can someone help me please. thanx
