Session ticket and AJAX

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

To generate session ticket :

  • Syntax :
  • Eg:

Set activity for session ticket

  • Syntax (app – module):
  • Eg:
  • Syntax (app – Service):
  • Eg:

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

  • Syntax:
  • Eg:

  •  

At last, write the spa script tag with other details of the 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 Apr 05, 2024