Harald Blotand
|
| Posted: 05/25/2002, 8:58 AM |
|
Any suggestions (other than go hire a programmer!) on how to select
different return pages after login based on the value of a field in the user
file? I'm presently looking at an application on an IIS server using ASPs.
Thanks in advance.
|
|
|
 |
Dave Rexel
|
| Posted: 05/25/2002, 6:03 PM |
|
CCS has Redirect To Prev in the Properties Panel -> Events tab for Login
Page type - form submit button.
When a standard Login Page is created the DoLogin button has the above in
Properties - Server - On Click - Login : it's set to True and user will be
redirected after Login.
Greetings
Dave
"Harald Blotand" <blotand@yahoo.com> wrote in message
news:acocc2$u5s$1@news.codecharge.com...
> Any suggestions (other than go hire a programmer!) on how to select
> different return pages after login based on the value of a field in the
user
> file? I'm presently looking at an application on an IIS server using ASPs.
>
> Thanks in advance.
>
>
|
|
|
 |
Harald Blotand
|
| Posted: 05/26/2002, 7:10 AM |
|
Thanks for the reply, Dave.
If I understand you correctly, the properties of the DoLogin button can be
changed to redirect or not. In the case at hand, I want to redirect, so I'll
set it to "True". But, what I additionally want to do is to redirect the
login to a different page for different users, based on the value of field
in the User table. For example, I want to redirect a user to grid_a when
Users.Grid='A', or to grid_b when Users.Grid = 'B'. Is this possible? If so,
where would this conditional statement be implemented?
Thanks, again.
"Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
news:acpc92$jso$1@news.codecharge.com...
> CCS has Redirect To Prev in the Properties Panel -> Events tab for Login
> Page type - form submit button.
>
> When a standard Login Page is created the DoLogin button has the above in
> Properties - Server - On Click - Login : it's set to True and user will be
> redirected after Login.
>
> Greetings
> Dave
>
> "Harald Blotand" <blotand@yahoo.com> wrote in message
>news:acocc2$u5s$1@news.codecharge.com...
> > Any suggestions (other than go hire a programmer!) on how to select
> > different return pages after login based on the value of a field in the
> user
> > file? I'm presently looking at an application on an IIS server using
ASPs.
> >
> > Thanks in advance.
> >
> >
>
>
|
|
|
 |
Dave Rexel
|
| Posted: 05/26/2002, 3:54 PM |
|
Hello Harald
If you double-click on the word Login in the Properties panel for the
DoLogin button CCS will generate and show a Code view for this function
normally called Login_events.xxx
Using PHP I see
global $Redirect;
$Redirect = CCGetParam("ret_link", $Redirect);
return true;
Modify the code to fit.
Dave
"Harald Blotand" <blotand@yahoo.com> wrote in message
news:acqqcb$20i$1@news.codecharge.com...
> Thanks for the reply, Dave.
>
> If I understand you correctly, the properties of the DoLogin button can be
> changed to redirect or not. In the case at hand, I want to redirect, so
I'll
> set it to "True". But, what I additionally want to do is to redirect the
> login to a different page for different users, based on the value of field
> in the User table. For example, I want to redirect a user to grid_a when
> Users.Grid='A', or to grid_b when Users.Grid = 'B'. Is this possible? If
so,
> where would this conditional statement be implemented?
>
> Thanks, again.
>
>
>
> "Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
>news:acpc92$jso$1@news.codecharge.com...
> > CCS has Redirect To Prev in the Properties Panel -> Events tab for Login
> > Page type - form submit button.
> >
> > When a standard Login Page is created the DoLogin button has the above
in
> > Properties - Server - On Click - Login : it's set to True and user will
be
> > redirected after Login.
> >
> > Greetings
> > Dave
> >
> > "Harald Blotand" <blotand@yahoo.com> wrote in message
> >news:acocc2$u5s$1@news.codecharge.com...
> > > Any suggestions (other than go hire a programmer!) on how to select
> > > different return pages after login based on the value of a field in
the
> > user
> > > file? I'm presently looking at an application on an IIS server using
> ASPs.
> > >
> > > Thanks in advance.
> > >
> > >
> >
> >
>
>
|
|
|
 |
Dave Rexel
|
| Posted: 05/26/2002, 4:01 PM |
|
Oops sorry,
forgot the most important bit,
I do not think you can check the session variables for the users ID in Login
page... so adapt the redirect to go to a page that will do the session check
and redirect the user as needed.
Dave
"Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
news:acrp3a$mg3$1@news.codecharge.com...
> Hello Harald
> If you double-click on the word Login in the Properties panel for the
> DoLogin button CCS will generate and show a Code view for this function
> normally called Login_events.xxx
>
> Using PHP I see
> global $Redirect;
> $Redirect = CCGetParam("ret_link", $Redirect);
> return true;
>
> Modify the code to fit.
> Dave
>
>
> "Harald Blotand" <blotand@yahoo.com> wrote in message
>news:acqqcb$20i$1@news.codecharge.com...
> > Thanks for the reply, Dave.
> >
> > If I understand you correctly, the properties of the DoLogin button can
be
> > changed to redirect or not. In the case at hand, I want to redirect, so
> I'll
> > set it to "True". But, what I additionally want to do is to redirect the
> > login to a different page for different users, based on the value of
field
> > in the User table. For example, I want to redirect a user to grid_a when
> > Users.Grid='A', or to grid_b when Users.Grid = 'B'. Is this possible? If
> so,
> > where would this conditional statement be implemented?
> >
> > Thanks, again.
> >
> >
> >
> > "Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
> >news:acpc92$jso$1@news.codecharge.com...
> > > CCS has Redirect To Prev in the Properties Panel -> Events tab for
Login
> > > Page type - form submit button.
> > >
> > > When a standard Login Page is created the DoLogin button has the above
> in
> > > Properties - Server - On Click - Login : it's set to True and user
will
> be
> > > redirected after Login.
> > >
> > > Greetings
> > > Dave
> > >
> > > "Harald Blotand" <blotand@yahoo.com> wrote in message
> > >news:acocc2$u5s$1@news.codecharge.com...
> > > > Any suggestions (other than go hire a programmer!) on how to select
> > > > different return pages after login based on the value of a field in
> the
> > > user
> > > > file? I'm presently looking at an application on an IIS server using
> > ASPs.
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
 |
|