CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Tips & Solutions

 Logout For Newbies

Print topic Send  topic

Author Message
ckroon

Posts: 859
Posted: 03/05/2008, 12:31 AM


I finally figured out how to get the Logout function to work properly and thought I would share it those who fellow coders who are learning CCS.

Note: This is CCS4, PHP. I am sure it will be fine with CCS3 but you never know

Make a simple page that says "You are now Logged Out" on it. Click the Authentication builder and choose Logout Action on this page. It will place the Logout action in the after_initialize event.

Now, make a Logout link using the Form builder and place it on a page, or in your footer.

In the href_source of the link, click the ... to the right of that box. Satic Text=Logout
Link address: the thanks page.

Now the fun part. Click the parameters tab and press the plus sign.

Source Type = Expression.
Parameter Source = 0
Parameter Name = Logout (capital L)

Press OK.

Publish the pages and test it. You will see that when you click Logout, you get redirected to your thanks page and the Session ID is removed.

Now, the only problem is that if you use your back button, you will still be logged in, but i am looking for some metarefresh code that will take care of this.
I will post that here when I find it.

Experts and gurus feel free to point out any errors or fallacies :)

Thanks!

:-)
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/05/2008, 4:04 AM

Quote :
Now, make a Logout link using the Form builder and place it on a page, or in your footer.

Position cursor at the position that you want the Logout Link, click Authentication Builder.
select: Logout link to custom Page
From the PageList select your ThankYou page.

Position, can be inside the Form carrying the Login.
As per earlier post you could have the login on a Panel and the Logout on another Panel.
Hide and show alternating........
http://forums.codecharge.com/posts.php?post_id=94612&s_keyword=login

Walter



_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/05/2008, 4:15 AM

And how about this one:
Experimenting with the issue of the Back button:

Entry Page of the application is Index.php.
On it is the Login build using authentication Builder, and a grid restricted=yes.
Just below the Login is the Logout link described earlier pointing to the ThankYou page.
On the ThankYou page is the Logout action build with AuthenticationBuilder, the return page for this logout action is set to Index.php. (through properties events)

No other code was entered.
The app is started, Index page called shows only login form.
Do the Login, and the grid will appear filled with data.
Press the Logout link and without even showing the text on the logout page, you are redirected to the index page, logged out.
As no history is created the BackButton is not even activated, there is NO history.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/05/2008, 4:23 AM

reposted here http://forums.codecharge.com/posts.php?post_id=94688
as this is CodeChargeStudio 3&4 and not CodeCharge related!


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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