Trying to redirect page on miserver
3 posts
• Page 1 of 1
Trying to redirect page on miserver
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
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
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
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
-
Brian|Dyalog - Posts: 80
- Joined: Thu Nov 26, 2009 4:02 pm
- Location: West Henrietta, NY
Re: Trying to redirect page on miserver
Hi Brian,
I'll do more tests and if necessary I'll send you more information about it.
Thanks
Marco
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group