Don't worry - I've gone the session route - all sorted now.
After login event with argument from before login
I'm trying to figure out the best way of executing the event right after the login, which contains the argument from before the redirect to the login page.
Basically, I have a 'Mark as watched' and 'Add to favorites' buttons, which require authentication before they can associate a given record with user's profile, but rather than just redirecting them back to the given video page and make them click the button again - I would like to execute the requested event straight after login. The request is made via Ajax call.
I could probably add a table to the database, which would store the event name and the serialized model etc., but can you think of any better way of doing it? I also thought about storing it in the session with the Event and Model name with model ID.
It's kind of a queuing scenario but with the release on the specific request.
What are your thoughts?
Please or to participate in this conversation.