Jump to content


Photo

Where Can I Get A Unique Session ID For Each Connected Browser

SessionID Browser

  • Please log in to reply
7 replies to this topic

#1 andyhill

andyhill

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 67 posts

Posted 12 October 2017 - 09:08 PM

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. 


  • 0

#2 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 657 posts
  • LocationKufur Kassem, Palestine

Posted 13 October 2017 - 04:00 AM

What kind of db you use: MS sql, Mysql, Absolute.... and what type: sql, nosql
  • 0

#3 andyhill

andyhill

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 67 posts

Posted 13 October 2017 - 04:34 AM

I use ALL types but for this project ElevateDB ClientServer


  • 0

#4 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9719 posts

Posted 13 October 2017 - 07:32 AM

UniSession.SessionId;

  • 0

#5 andyhill

andyhill

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 67 posts

Posted 13 October 2017 - 06:00 PM

Thanks


  • 0

#6 andyhill

andyhill

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 67 posts

Posted 13 October 2017 - 06:22 PM

I tried:-

 

IntToStr(UniSession.SessionID)

 

IntToStr(UniMainModule.UniSession.SessionID)

 

IntToStr(UniServerModule.UniSession.SessionID)

 

All failed "UnDeclared UniSession", is there a particular unit to add ?


  • 0

#7 andyhill

andyhill

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 67 posts

Posted 14 October 2017 - 05:05 AM

So SessionID is a String, Is this the correct way ?

 

function UniSession: TUniGUISession;
begin
  Result:= TUniGUISession(uniGUIApplication.UniSession);
end;

  • 0

#8 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9719 posts

Posted 14 October 2017 - 07:45 AM

SessionId is a string.


Sent from my SM-N900 using Tapatalk
  • 0





Also tagged with one or more of these keywords: SessionID, Browser

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users