Ewon TechForum
Providing technical solutions to technical requests


Viewon questions
insyncs Offline
Member
#1
Evening all,

I’m finishing a project and I have some questions. 

Q1. How can I show what user is logged on in a text box or similar? I was thinking of adding a string tag in the ewon and populate it with the current user, just not sure if there is a function for this?

Q2. How can I add a login / log off function via a link or button?

Q3. My eWon wan port is connected downstream of a site router, our site equipment is on the eWon lan. 

If we want to access the web server, we can put a port forward on the external site router, but the only way I can get the webpage to respond is by opening the eWon wan connections to all traffic. This must cause security issues, is there any other way to reach the web server other than eCatcher?

Q4. Can we setup a secure connection to the web server?

Cheers M

Cheers M
Reply

AngelaT Offline
Ewon Distributor
#2
Q1:  Remember that multiple people could be logged in so if you use a tag on the Ewon, you can't be sure it will be the user you want.  It is better to use some of the session variables since those are related to this user/this session.  I have a text field and I add a "Text on Simple" animation to it where the basic code I add is something like
viewon!="<%#SessionAst,UserLogin%>"

Q2:  Add an action to your button that reproduces the Ewon's logout.  There's info about it here https://techforum.ewon.biz/thread-609-po...ml#pid1968

Q3/4:  If you just want to reach the webserver by remote, have you looked at M2Web?  https://www.ewon.biz/cloud-services/talk2m/m2web
You'll still need Talk2M credentials, but you won't need extra software like eCatcher.
Reply

insyncs Offline
Member
#3
Thanks Angela!

Please explain the viewon!="<%#SessionAst,UserLogin%>" function, is this a viewon tag only?

Cheers M
Reply

insyncs Offline
Member
#4
Ok,  got logon in user info, but still cannot get a log off function to work.

Any ideas?

Thanks M
Reply

simon Offline
eWON Support
#5
Hi,

<%#SessionAst,UserLogin%> is a SSI Tag that can be used in any custom or viewon page as long as the extension is "*.shtm".
This tag will be replaced by the User name of the currently logged user

Simon
Reply

insyncs Offline
Member
#6
Thanks Simon,

Is there another manual for the ssi tags? Or where can I find more information?

Still cannot force a log off though ?
Reply

simon Offline
eWON Support
#7
Hi,

The SSI Tags are explained in https://developer.ewon.biz/content/custom-web-pages

About the specific SessionAst SSI Tags, I know two of them :
<%#SessionAst,UserLogin%>
<%#SessionAst,UserFullName%>

Find attached my viewON project for the Auto logoff.  It works on my side with fwr 14.

Simon


Attached Files
.zip   Auto_LogOff.zip (Size: 177,56 KB / Downloads: 6)
Reply

insyncs Offline
Member
#8
Thanks Simon!

I'll take a look.

M
Reply



Possibly Related Threads…
Photo Viewon Page Forbidden Started by Jon
0 Replies - 7 Views
7 hours ago
Last Post: Jon
01-04-2020, 08:32 PM
Last Post: mikeniemann
30-03-2020, 01:44 PM
Last Post: Baplu Sam
19-03-2020, 10:09 AM
Last Post: simon
  Viewon authentication Started by oliviersav
1 Replies - 210 Views
30-01-2020, 01:48 PM
Last Post: simon
  Viewon Started by insyncs
8 Replies - 1.122 Views
22-11-2019, 08:48 PM
Last Post: bryancit
13-11-2019, 03:44 PM
Last Post: Valentin59
30-10-2019, 10:50 AM
Last Post: LewisH304
15-07-2019, 01:03 PM
Last Post: jswenker
  Compteur ViewOn Started by alimemmi
0 Replies - 410 Views
05-07-2019, 04:41 PM
Last Post: alimemmi



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy