NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: frode on August 16, 2013, 03:03:28 AM

Title: Redirect from a netwebform if user uses a direct access URL
Post by: frode on August 16, 2013, 03:03:28 AM
Hi,

How do I redirect to the indexpage if the user puts in a direct url in the browser to a page that needs parameters to be shown correctly ?
Could I just use p_web.Redirect in the routine "beginning of procedure" before opening files if the criteria is not met ?

Thanks,
Frode Remoy
Title: Re: Redirect from a netwebform if user uses a direct access URL
Post by: Bruce on August 16, 2013, 05:07:42 AM
what type of procedure?
Title: Re: Redirect from a netwebform if user uses a direct access URL
Post by: frode on August 16, 2013, 08:32:30 AM
Netwebform
Title: Re: Redirect from a netwebform if user uses a direct access URL
Post by: frode on August 16, 2013, 12:26:52 PM
An example: I log in and navigate to a netwebform from a netwebbrowse that is filtered using a sessionvalue from the netwebbrowse.
I stay inactive until the session timesout.
Then I press F5, complete the loginform and get redirected back into the netwebform I was in the previous session.
In this scenario (like direct access urls to netwebforms where sessionvalues are not set) I would like to redirect the user back to the indexpage of the site.

Frode