Try: Echo $_SERVER['HTTP_REFERER']; Note that this is not a safe way of checking where a user comes from. But then again, there is no other / better way as far as I'm aware of. Good luck -----Oorspronkelijk bericht----- Van: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] Namens Sher Verzonden: dinsdag 23 augustus 2005 15:34 Aan: php-objects@xxxxxxxxxxxxxxx Onderwerp: how to check from where a user just open a particular page on my site. hi again, Thanks for the help you people provided related to the Session handling, i m working on it. I got another question. how can i check from where a user has open my site ? Like I want to restrict a user from accessing a particular page on my site, if he/she is not from another particular page on my site than that person is not allowed to see that page. is there a function or object that i can use like header(), include() ? Thanks in advance for anyhelp you people provide. Shakeeb. PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hadj2o7/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124811499/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/