# Ajax, check user?

**URL:** <https://forum.kirupa.com/t/ajax-check-user/203253>\
**Category:** Uncategorized\
**Created:** [October 9, 2006, 3:05pm UTC](https://forum.kirupa.com/t/ajax-check-user/203253 "2006-10-09T15:05:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarXploser](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/starxploser/32/875_2.png) [@StarXploser](https://forum.kirupa.com/u/StarXploser)\
**Post date:** [October 9, 2006, 3:05pm UTC](https://forum.kirupa.com/t/ajax-check-user/203253/1 "2006-10-09T15:05:55Z")

</div>

Hello ppl,  
I’ve been playing with hava for a little bit. I can use it for simple tasks, but I’d like to embbed it into a bigger site.  
The only problem is, how do i know if the request is legit.

for example. Let’s say i want to call method updateProfile() on the server side.  
I’d send a ajax request with some arguments like age=xx&name=…  
But what about the user ID. I dont want to send user ID trhough the URL.  
ppl could replace it easily and mess with ppl profile.  
is there anyway i can access the user id on the server side.  
I tried using $\_SESSION[‘id’] but it wasn’t working when i tested it.

I hope i was clear enough. I’ve been looking for a long time online now for the solution. could someone point me to the right direction?  
thx in advance.
