Lava Error: (Block: contentchannelitem) An error occurred while executing the command definition. See the inner exception for details.

Ideas

Hey Token, Stop logging me out!

Hey Token, Stop logging me out!

11.0 Core Complete

The use of tokens seems to interact with a preexisting login/session in an undesirable way.  Easiest explained with an example:

1. Alisha Admin logs into the external site and checked the "keep me logged in" box. Navigation within the site works and she remains logged in for a long duration.
2. Alisha receives an email with a tokenized link restricted to /page/1234 to enter Group Attendance (e.g., {{ Person | PersonTokenCreate:null,null,1234 }}).
3. Alisha clicks on the email, and is taken to page/1234 and enters attendance.
4. Alisha navigates to the home page, or any other page, and is no longer logged in.

Especially for active people that may be using tokenized links frequently, they will feel like they are constantly having to re-login to the website.

Not knowing the internals, but presumably the token created a new session, effectively clobbering the previous one and that session, being limited to page/1234 becomes invalid and logs the person out.

This idea recommends a change to the token-handling such that upon navigation using a token, if a logged-in user session already exists and is equivalent or superior to the passed rckipid token (e.g., person's existing session would allow navigation to that page already), then the token should be effectively ignored or at least not affect the existing token/session.


Here is some simple HTLM/Lava that can be placed in an HTML block on a test page to demonstrate:

{% assign pageId = 'Global' | Page:'Id' | AsInteger %}
{% assign token = CurrentPerson | PersonTokenCreate:null,null,pageId %}
<h3>Hello {{ CurrentPerson.FullName }}</h3>
<br><br>
Here is a tokenized link for you for, for only this page, id: {{ pageId }}<br>
First, <a href="/page/{{ pageId }}?rckipid={{ token }}">click here</a><br>
Then, <a href="/page/1">click here</a> (notice: you are no longer logged in)


Photo of Steve LipinskiSubmitted by Steve Lipinski, First Church of God of Columbia City  ·   ·  Core
Photo of Nick AirdoComplete Nick Airdo, Spark!  · 

Great idea! It will be in v11.

Planned Version 11.0
Ministry Strength 1 / 5
Login to add a comment...

Submission Success Tips

Cultivate your ideas for maximum impact with these helpful submission tips that will increase the chances of your brilliant concepts becoming reality.

  • Clear Title: Craft a straightforward and descriptive title that instantly conveys the essence of your idea.
  • Concise Description: Provide an idea description that is succinct, ensuring it effectively communicates the concept without unnecessary verbosity.
  • Provide Additional Details: With a concise description complete, now provide any other details that are needed to better understand the requirements.
  • Thorough Ministry Need Review: Provide a comprehensive overview of the ministry need your idea addresses, emphasizing its significance.
  • Cover the WHY: Clearly articulate the rationale behind your idea, explaining why it's essential and how it aligns with the organization's goals and mission. Oftentimes a clear "why" sheds light into other possible options.