Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Plugin loosing login status

Quote Reply
Plugin loosing login status
I have a plugin that I wrote. It is a search plugin, so it has a search form template,
and a results page template.

When viewing the form or the results, the login/logout icon is wrong.
So, I am loosing the user somehow. Actually I don't know how to
maintain the login status. The following condition exists in my templates
<%if user.Username%>, and it doesn' work on my plugin pages (templates).

user.Username is being maintained though, because even after visiting
my pages, I can navigate back to a GT page, and the icon corrects itself.

So user.Username is only missing when displaying my pages,
but seems to be being maintained properly.

Any suggestions are appreciated.

Thsnk you,
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] Plugin loosing login status In reply to
Look at the javascript in the headers in the normal templates, this is required to carry the user forward.
Quote Reply
Re: [Alba] Plugin loosing login status In reply to
I have deleted the javascript you mention because my site is dynamic.
So I do not think that is the problem, but I will try it.

All the other pages work without the javascript being there.

Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Quote Reply
Re: [rgbworld] Plugin loosing login status In reply to
Make sure that you have the init user line in your plugin.