Trying to redirect page on miserver

MiServer is Dyalog's APL-based web development framework

Trying to redirect page on miserver

Postby Gantois on Sun Apr 02, 2017 12:00 pm

Hi Friends,

I can not redirect a page using meta tag after identify that user session is out. "Meta" instruction is bypassed in this case. What could I do to solve this?

e.g:
∇ Render req;html;stop;⎕TRAP;rc
:Access Public
ilogin←⎕NEW #.fileLogins
:If ilogin.SessionOut req.Session.State.login req.Session.ID ⍝ return 1=true 0=false
req.Meta'http-equiv="refresh" content="1;URL=/index.dyalog"'
⍝ req.Meta'http-equiv="refresh" content="1;URL=/timeoutMsg.dyalog"'
:EndIf

ps:
ilogin.SessionOut function is identifying correctly that session is out. The :If result is true, the process go to next instruction (meta) but continue after :EndIf.

Thanks,
Marco
Gantois
 
Posts: 70
Joined: Thu Apr 17, 2014 9:44 am

Re: Trying to redirect page on miserver

Postby Brian|Dyalog on Fri Apr 07, 2017 2:31 pm

Hi Marco,

I'm not sure I understand the nature of your problem.
I would expect processing to continue after the :EndIf.
If you want no more processing to take place on the page after you insert the <meta> element, then insert a →0 within the :If/:EndIf clause.

If that's not the issue, then could you give me a little more explanation of the problem?

I hope this helps!
Thanks!
/Brian
User avatar
Brian|Dyalog
 
Posts: 80
Joined: Thu Nov 26, 2009 4:02 pm
Location: West Henrietta, NY

Re: Trying to redirect page on miserver

Postby Gantois on Tue Apr 11, 2017 12:55 pm

Hi Brian,

I'll do more tests and if necessary I'll send you more information about it.

Thanks
Marco
Gantois
 
Posts: 70
Joined: Thu Apr 17, 2014 9:44 am


Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest