vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to force page reload after redirect ? (https://vborg.vbsupport.ru/showthread.php?t=156686)

mihai11 08-31-2007 08:23 AM

How to force page reload after redirect ?
 
Hi,

I have developed a custom page that has a different navbar for authenticated users and for non-authenticated users (the authenticated users get more options). Now, the problem is that after logging in, the user is still presented with the old navbar (the navbar for non-authenticated users). The user must reload the page in order to see the navbar for authenticated users. How can I fix this ?

I wouldn't want to disable the cache, because this page is going to be quite popular. Is there a better option ? It would be great to be able to specify somehow that after the redirect, the page that must be loaded should be taken from the server and not from cache. Is this possible ?

Regards,
Razvan

djdonx 08-31-2007 08:30 AM

Would you want it so that everytime someone visits the page it refreshes or just after someone logs in :S

Code:

<body onload="window.setTimeout('window.location.reload()',1000);">
I found you a Java refresh script that refreshes the page after one second..

Hope thats what you meant

mihai11 08-31-2007 11:09 AM

Quote:

Originally Posted by djdonx (Post 1329366)
Would you want it so that everytime someone visits the page it refreshes or just after someone logs in :S

Code:

<body onload="window.setTimeout('window.location.reload()',1000);">
I found you a Java refresh script that refreshes the page after one second..

Hope thats what you meant

The page only needs to be reloaded after login in, so that the correct navbar is displayed. Your solution seems to continuously refresh the page after 1000 miliseconds.

Even if it could be made to work to refresh the page *only* after login, I still don't like this solution very much because the user will get a chance to see to old page for a second then that page will be reloaded without his request. This might be annoying for some users.

djdonx 08-31-2007 11:45 AM

Make it a shorter time length then?


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00978 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete