https://www.icyphoenix.com/viewtopic.php?f=35&t=8875&p=57964#p57964 ----------------------------------- AndyGpy Thu 10 Jan, 2013 11:18 Re: How Do I Check If A User Is Logged In ? ----------------------------------- below is the Redirect Code :- [code linenumbers=false] if (!$user->data['session_logged_in']) { // No user isnt logged in redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=alertz_VIP.' . PHP_EXT, true)); exit; } else // Yes they are { ....My code is in here... full_page_generation('alertz_VIP.tpl', '', '', ''); } [/code] Form Action, this form is called from a link, the link being in overall_header.tpl -- Alertz    This link then goes to the alertz_VIP.tpl page where the code is [code linenumbers=false]

Scotbirds Alertz - Rare and Scarce

 

 

If you have seen something unusual / rare then please call it in on -- Hotline: 0333 5772473

Date   Region   Species

 

Region Species Date Time Comments
{alerts.REGION} {alerts.SPECIES} {alerts.DATE} {alerts.TIME} {alerts.COMMENTS}

 

[/code] Scenario 1 I am a user that has not logged in, i go direct to this page [url=http://www.scotbird.co.uk/scotforum/alertz_VIP.php]http://www.scotbird.co.uk/scotforum/alertz_VIP.php and i get redirected to the login, once logged in i can view. Scenario 2 I am a LOGGED IN USER and browse to the page [url=http://www.scotbird.co.uk/scotforum/alertz_VIP.php]http://www.scotbird.co.uk/scotforum/alertz_VIP.php and i get asked to re-login. Can someone assist Mort and help me resolve this as i am going nutz. Also how do i change the page title in ICY2.0 ? regards