Jump to content


Photo

unlimited SessionTimeOut ?

Session

  • Please log in to reply
4 replies to this topic

#1 JeffBr

JeffBr

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationSan Jose , California

Posted 29 December 2014 - 06:44 PM

How can I make the session be unlimited ? so user can stay on app as long he wants.

 

Thanks. 


  • 0

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9979 posts

Posted 29 December 2014 - 07:07 PM

Put a TUniTimer on mainForm  with a dummy Event handler. Set timer Interval to 3 minutes or something.


  • 0

#3 JeffBr

JeffBr

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationSan Jose , California

Posted 29 December 2014 - 07:22 PM

any example ? 


  • 0

#4 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9979 posts

Posted 29 December 2014 - 07:32 PM

It is easy.

- Put a TUniTimer on MainForm.

- Set the Interval to 180000

- Set an empty event handler for OnTimer

procedure TMainForm.UniTimer1Timer(Sender: TObject);
begin
//
end;

  • 0

#5 JeffBr

JeffBr

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationSan Jose , California

Posted 29 December 2014 - 07:36 PM

Thanks


  • 0





Also tagged with one or more of these keywords: Session

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users