Conditional Button Test Page

Session Detection Test

This page tests whether a user is logged into the Kuraplan app by checking for a shared session cookie (kuraplan_logged_in). The button below will change based on the login state.

Note: This detection relies on a shared cookie that needs to be set by the app when users log in. If you're not seeing the expected behavior, the app may need to be updated first.

Checking session status...

Debug Information

Loading: Yes

Has Kuraplan Session: Checking...

Looking for cookie: kuraplan_logged_in=true

Current Cookies:

Server-side rendering

How to Test

  1. Visit this page without being logged into your app - you should see the "Sign Up" button
  2. Log into your Kuraplan app in another tab
  3. Refresh this page - you should now see the "Go to Dashboard" button
  4. Log out of your app and refresh this page - it should go back to "Sign Up"