Documentation / Tutorials / Generic,Quick Samples

Session ticket and AJAX

/ Generic,Quick Samples / 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

    • Web URL: <site_url>/t/<ticket_id>
    • SPA: route_ajax=”t/<ticket_id>”

Use to manually handle ticket  validation

    • route_ajax=”ticket-handler/<ticket_id>/submit”

Get all ticket data 

Destroy Ticket 

Update ticket validity 


    •  
Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *