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 -> ASP

 Name of the HTTP Parameter in Logout???

Print topic Send  topic

Author Message
Frank
Posted: 11/10/2004, 9:40 AM

Hello there,
I am a rookie at the CodeCharge Studio programming.
Sorry if this is a basic question, but I am having a lot of trouble to make it out of it.

I am trying to make a simple Logout, but the button I asigned to the action doesn't seem to make anything at all.
I think maybe is that I have to put a valid Parameter Name at the action "Logout".
My question is: What is the name of the HTTP Parameter?
I tried everything there, even the entire URL, but it doesn't seem to work.
Can someone help me with this?

Thanks in advance.
smalloy

Posts: 107
Posted: 11/10/2004, 2:39 PM

I'm not sure it this is what you are after but it may help.

In your Href source add a link parameter, the Type is EXPRESSION, the parameter source = "True" - Include the quotes, name the parameter Logout - no quotes.

In the Form's Page_OnInitializeView add this code

'Logout
If NOT IsEmpty(CCGetParam("Logout", Empty)) Then
CCLogoutUser
End If
'End Logout


All should be well. Good luck!
_________________
Anything can be done, just give me time and money.
View profile  Send private message
DonB
Posted: 11/10/2004, 3:26 PM

Buttons only "do something" if they cause a form submit to occur. This
means they have to exist within a <FORM> block (or it has to have the
javascript "submit()" function, referencing some form) in the onclick
(clientside) event.

A Link, on the other hand, requests a page (even itself) and you can attach
a parameter to pass back (which will get you the result/effect described by
smalloy). It's fairly easy to play with CSS appearance attributes to make a
link look like a button, if the plain-text link appearance is a problem for
you.

--
DonB

http://www.gotodon.com/ccbth


"Frank" <Frank@forum.codecharge> wrote in message
news:6419252741b692@news.codecharge.com...
> Hello there,
> I am a rookie at the CodeCharge Studio programming.
> Sorry if this is a basic question, but I am having a lot of trouble to
make it
> out of it.
>
> I am trying to make a simple Logout, but the button I asigned to the
action
> doesn't seem to make anything at all.
> I think maybe is that I have to put a valid Parameter Name at the action
> "Logout".
> My question is: What is the name of the HTTP Parameter?
> I tried everything there, even the entire URL, but it doesn't seem to
work.
> Can someone help me with this?
>
> Thanks in advance.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Frank
Posted: 11/10/2004, 8:00 PM

Thanks to both of you. I have tried with what you both told me, and it still isn't working.
What I am trying to do is to put a "Close Session" button in the header of the project (just for the restricted pages).
I have already created the <FORM> block, and just as you told me, DonB, it looks like it works a little bit (just redirecting to the default page of the project), but it still does not do the logout.
Shouldn't I have to involve some kind of session variables in the Logout action?
The data I am writing as parameters for the Logout action of the button (at the Properties -> Events -> Server -> onclick ->Logout) is:
Parameter Name: Logout
Return Page: ../Default.asp
Page Redirects: True

Is that alright?

Thanks again
peterr


Posts: 5971
Posted: 11/10/2004, 9:23 PM

Hi,

I recommend that you do not use a button to do the logout because it may require better understanding of how buttons work. If you do want to experiment then don't use any Parameter Name - leave it blank.

The standard method to implement logout functionality is described here:
http://forums.codecharge.com/posts.php?post_id=46206
http://forums.codecharge.com/posts.php?post_id=52863

The Authentication Builder can automatically create the Logout functionality on any page. Then you should only redirect users to that page as described at http://forums.codecharge.com/posts.php?post_id=46206

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Frank
Posted: 11/11/2004, 8:09 AM

Thanks a lot, peterr!!!
It worked great.
For now on you will be for me the "SENSEI" :-)

I agree with the creation of the section "HOW TO DO THING" that LV proposed some time ago.
peterr


Posts: 5971
Posted: 11/11/2004, 4:02 PM

What's SENSEI? I hope something good and not too kinky :-)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Frank
Posted: 11/15/2004, 7:34 AM

Don't worry. Its not bad.
Sensei is a word for master.

Thanks again for the help.


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.