NetTalk Central

Author Topic: Redirect from a netwebform if user uses a direct access URL  (Read 2811 times)

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Redirect from a netwebform if user uses a direct access URL
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Redirect from a netwebform if user uses a direct access URL
« Reply #1 on: August 16, 2013, 05:07:42 AM »
what type of procedure?

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Redirect from a netwebform if user uses a direct access URL
« Reply #2 on: August 16, 2013, 08:32:30 AM »
Netwebform

frode

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: Redirect from a netwebform if user uses a direct access URL
« Reply #3 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
« Last Edit: August 16, 2013, 12:47:03 PM by frode »