Jump to content


uniGUI Subscriber
  • Posts

  • Joined

  • Last visited

  • Days Won


irigsoft last won the day on April 24

irigsoft had the most liked content!

About irigsoft

Recent Profile Visitors

1300 profile views

irigsoft's Achievements

Advanced Member

Advanced Member (4/4)



  1. You can show cookie with javascript in URL of browser like this: javascript:alert(document.cookie); but: "You cannot get cookies from another site; you can only give own cookies to another site. document.cookie contains semicolon-separated list of name=vale of the cookies of your own page; you can use that to pass to another site using XHR" from here:https://stackoverflow.com/questions/26178322/how-to-get-cookie-value-using-url https://stackoverflow.com/questions/36318866/reading-a-cookie-from-a-different-domain https://stackoverflow.com/questions/3342140/cross-domain-cookies
  2. Hello, try to use java script to get cookie: https://www.w3schools.blog/get-cookie-by-name-javascript-js UNiSession.AddJS ( 'function getCookie(cookieName) { let cookie = {}; document.cookie.split('';'').forEach(function(el) { let [key,value] = el.split(''=''); cookie[key.trim()] = value; }) return cookie[cookieName]; };' alert (getCookie ('wanted cookie name')) );
  3. hello, i want to add more security to my projects (my security team recommends it). For security reasons, I want to control the body of the message when responding and requesting. I try to add some limitations of message body. https://backstage.forgerock.com/docs/am/7.1/security-guide/limit-request-body-size.html
  4. this is how to add header "Content-Security-Policy" from here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy <meta http-equiv="Content-Security-Policy" content="script-src 'none'; object-src 'none'">
  5. Hello, Has anyone managed to use a newer version of jQuery ?
  6. Hello, I try to make some limitations on Content-length of body on my StandAlone application. I read : https://stackoverflow.com/questions/2773396/whats-the-content-length-field-in-http-header#:~:text=The Content-Length header is,the start-line and headers. and this https://www.jmarshall.com/easy/http/ and try to set on TUniServerModule.RespInfoCustomHeaders Content-Length: 20000, but I am getting this when try to load my app on Google sent an invalid response. ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH When I try to configure TUniServerModule.UniGUIServerModuleHTTPCommand AResponseInfo.ContentLength: = 20000, then my application shows the basic form, but freezes without error So , what I am wrong ?
  7. this can be useful: on procedure TUniServerModule.UniGUIServerModuleHTTPCommand( just add this headers: AResponseInfo.CustomHeaders.AddValue('Cache-Control', 'no-cache, no-store, must-revalidate'); //HTTP 1.1 AResponseInfo.CustomHeaders.AddValue('Pragma','no-cache');////HTTP 1.0 AResponseInfo.CustomHeaders.AddValue('Expires', '0'); documented and explained here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html this maybe will extend data transfer between Client and Server (will use more traffic)
  8. Yes, only on Server side. But is some kind of solution (and I use it on Desktop application). I'm sure the idea can be used.
  9. Hello, You can use standard method to copy data from cells in dbGrid and after drop on StringGrid just Paste clipboard with data. this is how to copy in clipboard: uses Clipbrd; var sData : String; //copy to Clipboard if is used [Ctrl + Left] If Shift = [ssCtrl] then begin Clipboard.AsText := TDBgrid (Sender).Columns [TDBgrid (Sender).SelectedIndex].Field.AsString; end; //copy to clipboard all selected rows if [ctrl + shift] if shift = [ssCtrl,ssShift] then begin sData := ''; //set column's name for I := 0 to TDBgrid (Sender).Columns.Count - 1 do begin if TDBgrid (Sender).Columns[I].Visible then begin sData := sData + TDBgrid (Sender).Columns[I].Title.Caption; if I < (TDBgrid (Sender).Columns.Count - 1) then sData := sData + #9; end; end; sData := sData + #13#10; //read all data for J := 0 to TDBgrid (Sender).SelectedRows.Count - 1 do begin TDBgrid (Sender).DataSource.DataSet.GotoBookmark (TBookmark(TDBgrid (Sender).SelectedRows[J])); for I := 0 to TDBgrid (Sender).Columns.Count - 1 do begin if TDBgrid (Sender).Columns[I].Visible then begin if TDBgrid (Sender).Columns[I].Field <> nil then sData := sData + TDBgrid (Sender).Columns[I].Field.asString else sData := sData + ''; if I < (TDBgrid (Sender).Columns.Count - 1) then sData := sData + #9; end; end; sData := sData + #13#10; end; Clipboard.setTextBuf(PCHAR (sData)); end;
  10. Hello, there are many cases when the user closes the browser, loses the Internet (and others) but session is still active, In these cases you will not know when the user logout. I think the best way is to add a check of user activity. there are topics in the forum about this.
  11. Hello, You must carry a session when the browser closes or the user interrupts the Internet on the device!
  12. OK, You can use AddJS, like this: onClick or in Timer Event, UniSession.AddJs ('Ext.toast(''Your message to Client</br> New line for another message'',''Caption of Message'');');
  13. Hello, what is the purpose of this request? Do you want to notify the client running on the server or do you want to send a notification to the client computer?
  14. Sorry, but this not work ! Here is answer :
  • Create New...