Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Logged in but post appears as Anonymous

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jamesyong wrote: BTW, when I logged in, I didn't enable the "remember nx time i login blah blah" .



If you delayed more thatn 10 minutes, then you session has expired, and, because you didn't choose for auto login, you post went as Anonymous. That's normal behaviour.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I am not sure why this happens.

I am sure I am already logged in and I didn't log out. I was submitting a bug report "Ghost data, after deleting and recreating database with defaults values." and my post appears as Anonymous.

Could it be I took too much time to write my post and the session timing has already expired by the time I submit my post. :roll: BTW, when I logged in, I didn't enable the "remember nx time i login blah blah" .

Regards,
James Yong


[originally posted on jforum.net by jamesyong]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafeal,
I have gone through the source code and yes, as you have said it is normal behaviour.

I am thinking if someone like me were to type a long post, that 10 minutes time frame can easily be exceeded. So I will probably extend the time a bit by modifying the cookie used for the automatic login.

I am rather new to open source. May I know how much customisation can I made to JForum?

Regards,
James Yong
[originally posted on jforum.net by jamesyong]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to have a bigger session timeout, you should edit the value of the tag "<session-timeout>" in the file WEB-INF/web.xml. Currently the value is 10. If you want to have a inactivity limit of 30 minutes, just put "30" there ( and don't forget to restart the servlet container after that )

You can change anyhting in jforum's source. I just ask you - and the license makes this explicit - to let the credits to the original author.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the info
[originally posted on jforum.net by jamesyong]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In JForum 1.0 - RC 3.2 (still using this anciency, mainly because I'm little afraid of the template stuff I've modified for myself) anonymous post also appears in restricted forums, if the poster previously was logged in and could access them; like he logs in, opens the restricted forum, delays till his session expires and then posts as anonymous in the restricted forum. This, of sourse, can be threated as normal behavior, too, but I think it's rather a bug: anonymous poster that can't post in the restricted forum can't post in the restricted forum, period.

Sorry to bother you folks in case if this is already fixed in current version.

P.S., have no free time now for JForum, so fix it by myself, sorry
[originally posted on jforum.net by Daniil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Daniil is alive

We have worked on some issue like that, but I'll check according to your description!!

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we use a hidden input in the form to keep the login and avoid the session timeout "bug"? I use this trick in some of my projects. And this issue occurred again in my post of "Topic is not saved in correct encoding in Traditional Chinese" post.
[originally posted on jforum.net by andowson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not a bug. If the user wants to avoid it, it must check "log me in automatically". What I can do is handle this in some way, like saving the data somewhere if the session expieres and, after the user logs in again, the system finish the posting action.. something like that.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Why is the word "abbreviation" so long? And this ad is so short?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic