BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
ForumForumSupportSupportGeneral SupportGeneral SupportAutologin via cookie works only for homepageAutologin via cookie works only for homepage
Previous Previous
 
Next Next
New Post
 4/27/2010 10:52 AM
 

Hi there,

I have a bugnet 0.8 RC3 installation working fine and I changed the web.config file in order for cookies to be persisted for an adequate amount of time and this works fine for when I get to the homepage I get "recognized".

Whenever trying to access an issue with a direct URL (such as the link that are embedded in the notification email), however, I get a "session expired, please return to the home page" error that implicitly nullifies the usefulness of the direct link.

Is there a way to have any page capable of auto-authenticating via cookie?

Thank you.

New Post
 4/28/2010 4:20 PM
 

Not sure if it is related but the 'Remember me next time' has no effect as my past login details are not shown and I'm not automatically logged in.

It is the same for this website forum, I must enter my name manually every time.

New Post
 4/28/2010 11:42 PM
 

Well, actually it works. The problem is that by default the amount of time that "remember" function has is so small it is actually useless.
I changed my web.config file to lenghten it (i.e.: the cookie lifetime) and now it works fine... but only from the home page.

Any other page goes into "session expired go to homepage" nullifying the idea of direct links such as for bugs.

New Post
 4/28/2010 11:56 PM
 

Yes, you're right. Re-visiting after a few minutes, I'm still logged in, hours or a day later, I'm a stranger.

New Post
 4/29/2010 12:20 AM
 

:)

Fix for this is easy: pick the web.config and change this:

<forms name="BugNET" loginUrl="~/Login.aspx" />

inot this:

<forms name="BugNET" loginUrl="~/Login.aspx" timeout="40320" />

Note that timeout is in seconds so put something high in there, also note that since cookies are "sliding" by default that value is how long the cookie remains valid after the last successfull login.

Davin, think you can put this in the distribution too?

Too bad this doesn't work with any page but just the home (wonder why).

Edoardo.

Previous Previous
 
Next Next
ForumForumSupportSupportGeneral SupportGeneral SupportAutologin via cookie works only for homepageAutologin via cookie works only for homepage

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.