Session ticket and AJAX

  • Use ticket while executing AJAX, which provides much of security rather than calling module directly through name.
  • Following are then syntax’s and examples:

To generate session ticket :

  • Syntax:
  • Eg:

  •  

Set activity for session ticket

  • Syntax:
  • Eg:

  •  

If you need to send any extra parameter in request, in that case also use ticket rather than script attribute

  • Syntax:
  • Eg:

  •  

At last write spa script tag with other details of script call.

  • Syantax:
  • Eg:

URL to use Ticket


    •  

Use to manually handle ticket  validation

Ticket handler

Get all ticket data 

Destroy Ticket 

Update ticket validity 


    •  
Updated on Jun 19, 2021