andyhill Posted October 12, 2017 Share Posted October 12, 2017 For my Remote DB Session I need a Unique Session ID For Each Connected Browser (user) so as to distinguish one from another. My understanding is that the ServerModule Session is independent of the Browser and Server Specific ? - please advise - thanks in advance. Quote Link to comment Share on other sites More sharing options...
mhmda Posted October 13, 2017 Share Posted October 13, 2017 What kind of db you use: MS sql, Mysql, Absolute.... and what type: sql, nosql Quote Link to comment Share on other sites More sharing options...
andyhill Posted October 13, 2017 Author Share Posted October 13, 2017 I use ALL types but for this project ElevateDB ClientServer Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 13, 2017 Administrators Share Posted October 13, 2017 UniSession.SessionId; Quote Link to comment Share on other sites More sharing options...
andyhill Posted October 13, 2017 Author Share Posted October 13, 2017 Thanks Quote Link to comment Share on other sites More sharing options...
andyhill Posted October 13, 2017 Author Share Posted October 13, 2017 I tried:- IntToStr(UniSession.SessionID) IntToStr(UniMainModule.UniSession.SessionID) IntToStr(UniServerModule.UniSession.SessionID) All failed "UnDeclared UniSession", is there a particular unit to add ? Quote Link to comment Share on other sites More sharing options...
andyhill Posted October 14, 2017 Author Share Posted October 14, 2017 So SessionID is a String, Is this the correct way ? function UniSession: TUniGUISession; begin Result:= TUniGUISession(uniGUIApplication.UniSession); end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 14, 2017 Administrators Share Posted October 14, 2017 SessionId is a string. Sent from my SM-N900 using Tapatalk Quote Link to comment Share on other sites More sharing options...
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.