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

 Redirect to Login Page

Print topic Send  topic

Author Message
laneoc

Posts: 154
Posted: 01/15/2018, 11:23 AM

When a user clicks Submit on my page, the user is redirected to the login page if not logged in (probably do to a web server timeout). After logging in, the user is directed back to the page they started. But the values they entered onto that page are missing.

What can I do to keep those values so that after the user comes back to the entry page after logging in, they don't have to re-enter everything?
_________________
Lane
View profile  Send private message
ccsminer

Posts: 159
Posted: 01/16/2018, 10:23 PM

Not recommended - but adding the page parameters to the page query URL might work.

View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 01/17/2018, 4:22 PM

Session Variables?

In the form OnValidate event:

$textfieldvalue = $formname->textfield->GetValue();
CCSetSession("textfieldvalue", $textfieldvalue);


In the form BeforeShow event

$formname->textfield->SetValue(CCGetSession("textfieldvalue"));


After Insert, Update, On Submit or whatever clear it

CCSetSession("textfieldvalue", "");

_________________
Central Coast, NSW, Australia.

View profile  Send private message
DataDoIT
Posted: 01/18/2018, 11:34 AM

You should probably not have the user even see the page without proper
credentials. Sounds like your record form has the Restrictions as
opposed to the Page.

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.