molla2005b Posted January 2, 2017 Posted January 2, 2017 hi friends where We can use UniSession.UrlReferer property? What is do ? Quote
Administrators Farshad Mohajeri Posted January 2, 2017 Administrators Posted January 2, 2017 Represents the URL which has been used to start the web application on the client side. Under normal operations this referrer is retrieved from HTTP rqeuesr parameters and there is no need to specify it. However, sometimes when server is behind a reverse proxy URL referrer can not be get from the HTTP request and should be specified manually. Example:Consider your server is behind a reverse proxy which redirects external URL http://mycompany.com/webappato the internal URL of http://192.168.1.134:8088/webappa.dll . In this case the external URL http://mycompany.com/webappashould be retrieved from request header parameters 'Referer', but for some reasons this value can be missing from the headers and in this case you need to sepcify it manually by setting the UrlReferer property to 'http://mycompany.com/webappa'. Quote
Ron Posted January 2, 2017 Posted January 2, 2017 "...in this case you need to sepcify it manually..." Why do you then need to specify it ? Please clarify. "...retrieved from request header parameters 'Referer'..." How early, in the startup process, can this be done, and how? Quote
Administrators Farshad Mohajeri Posted January 2, 2017 Administrators Posted January 2, 2017 "...in this case you need to sepcify it manually..." Why do you then need to specify it ? Please clarify. "...retrieved from request header parameters 'Referer'..." How early, in the startup process, can this be done, and how? If you don't specify your application will still work, but some URLs such as application restart URL can be wrong. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.