CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Logout Link

Print topic Send  topic

Author Message
bowtellj

Posts: 65
Posted: 08/11/2007, 1:21 AM

I have added a logout link using the builder but access to secured pages is still available after selection. I am not using the remember me feature. Why would this be happening?

<a href="{Logout_Src}">Logout</a>

Thanks
_________________
Thanks

James

Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
View profile  Send private message
DonB
Posted: 08/11/2007, 6:02 AM

You must at some point cause the function CCLogoutUser() to be called or
else the user isn't truly logged-out. Just a 'Link' isn't going to do that.
It will request a URL and pass a parameter, then in whatever page that is,
you will need to detect the presence of a parameter (such as ?logout=1) and
call the logout function - perhaps in the Before Show code on that page.

Or use a <form> containing a submit button, then in the button's OnClick
event, call CCLogoutUser(). This is probably the cleaner of the two
options.

--
DonB

http://www.gotodon.com/ccbth


"bowtellj" <bowtellj@forum.codecharge> wrote in message
news:246bd719a7d589@news.codecharge.com...
> I have added a logout link using the builder but access to secured pages
is
> still available after selection. I am not using the remember me feature.
Why
> would this be happening?
>
>
<a href="{Logout_Src}">Logout</a>
>
> Thanks
> _________________
> Thanks
>
> James
>
> Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP
SP2.
> CCS 3.2.0.2
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

Vlad

Posts: 3
Posted: 08/11/2007, 6:09 AM

Quote bowtellj:
I have added a logout link using the builder but access to secured pages is still available after selection. I am not using the remember me feature. Why would this be happening?

<a href="{Logout_Src}">Logout</a>

Thanks

Did you add a Logout Action to the page?
View profile  Send private message
zecinho

Posts: 24
Posted: 08/13/2007, 4:07 PM

Did you add logout action on your page? after add a link logout you have to add a logout action on the page to get the params from the logout link.
_________________
Jose Maldonado
View profile  Send private message
bowtellj

Posts: 65
Posted: 08/13/2007, 9:31 PM

Yes. Both the link and the action have been added.

If I select the link it returns to my designated page. If I select the page link again it lets me view it without forcing a login.
_________________
Thanks

James

Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.