If you have control of the url which leads to your site you can pass yourself a parameter: http://www.mysite.whatever.com/index.php?nav=1 The 'nav' variable can tell you how to present your pages. You can store this value in the session and continue to refer to it when the user clicks on your various other pages, -----Original Message----- From: Sher [mailto:sha_sher@xxxxxxxxx] Sent: 23 August 2005 14:34 To: php-objects@xxxxxxxxxxxxxxx Subject: 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. ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hjov8ul/M=362131.6882499.7825260.1510227 /D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124811335/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 ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hmd8osj/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124814906/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</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/