Jump to content

session update


billyChou

Recommended Posts

can not sure then question happen to .

 

a project  use url show data , when update data ,  system session  background auto update, generate  the session postion data  error.

  

   brower firfox, chrome

   unigui 1287, 1292

   componet list

   db postgres 9.4

   unidac 6.2.10 , 6.2.9

 

  -----------------------------------------------------------------------------

  //mainform

  UniEdit1.Text   :=UniApplication.Parameters.Values['stu_id'];
  UniEdit2.Text :=UniApplication.Parameters.Values['stu_pwd'];

  sUserid   := uppercase( UniEdit1.Text );

 

  bRet := q_epo010.Locate('n_stu',VarArrayOf([sUserid]),[]);
  if bRet then
     OpenForm('Tfrm_epo010a1');

 

 ---------------------------------------------------------------------------

 //frm_epo010a1 save

    if (q_main.State in [dsEdit])then
    begin
        q_main.Post;
    end;

 

 

test url

//-------------------------------------------------- 

http://localhost:88/?stu_id=C22153800

http://localhost:88/?stu_id=H22509432

http://localhost:88/?stu_id=K12282104

http://localhost:88/?stu_id=K12307438

http://localhost:88/?stu_id=K22272621

http://localhost:88/?stu_id=K22306275

http://localhost:88/?stu_id=L12512204

http://localhost:88/?stu_id=L12518306

http://localhost:88/?stu_id=M12279221

http://localhost:88/?stu_id=N22616961

 

---------------------------------------------------

 

Thanks.

 

 

   

 

Link to comment
Share on other sites

  • Administrators

If I understand correctly the urls are called in background.

 

Each time you call  a url a new session is created which after a while causes lots of sessions to remain in memory.

Sessions will timeout after SessionTimeout period, but in your case you should terminate them by explicitly calling:

UniApplication.Terminate();
Link to comment
Share on other sites

  use brower url  login  many page,

  

   locate url parameter and show,

    

   when update first page url (01) form  data  and save, -> data show last page url (10)  data.  

 

 

 

  //----------------------------------------------------

  01. http://localhost:88/?stu_id=C221538004
  02. http://localhost:88/?stu_id=H225094320 

   ......

  10. http://localhost:88/?stu_id=N226169615    

   

  Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...