We use cookies to help make our site work properly and to analyze how our site is used. Some are optional, but none contain your personal information, and we don't use any for ads. You can view our cookies policy, manage your cookie preferences, or consent and dismiss this banner by clicking agree:

What’s the context and desired functionality? From your code snippet it doesn’t look like you are modifying or manipulating the user’s session, so I do not think you are using the best hook for the task.

Gotcha. Ideally that would happen via an ACTION request rather than on PAGE calls to a template. But I understand that that leaves you with less controllable URLs, or would require additional server config on the user’s part. So if you continue down the path of using an extension hook, core_boot is the one you want. Session hooks are for modifying the session object itself. It executes far too early for general application behavior, and is not meant for anything other than that purpose. With core_boot, it happens early, but after the app is ready to use. Make sense?

Username

Password

Email Address

Used to log in

Display Name

Password

By registering, you agree to our terms of service, including receiving some tips and offers from us from time to time. We never spam, and we never share your email address with third parties. Terms of ServicePrivacy Policy