| 
Welcome, Guest

Redirect to restricted content after sess. expired
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Redirect to restricted content after sess. expired

Redirect to restricted content after sess. expired 3 years, 9 months ago #71547

  • tomcmok
  • tomcmok
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
Hi,

I've been searching through the forum for the solution to that issue, but havent' found the exact solution (maybe missed something - sorry then).

The CASE I'm struggling with is that if someone stays logged on, does not do anything and his session expires. He comes back to the portal and clicks on some link that leads to the content restricted to the registered users only.

When I have no CB installed, Joomla (1.5) redirected to the logon form and then after user logged back on, it redirected to the conetent he originally wanted to view.
After installing CB (and following instructions with disabling Joomla login and anablling CB one), the first issue I has was that in the above CASE yser was redirected to the standard Joomla logon form not the CB's one. This one I've solved following one of the suggestions on this forum to put the renamed 'mod_cblogin.php' into the template's html/com_user/login dir - that solved the problem, hovever the proper redirection still didn't work. When the user (still above CASE) clicked on a restricted link - i.e.:

http:....../index.php/forum.html

...he got redirected to CB login form with url like:

http:......./index.php?option=com_user&view=login&return=aHR0cDovL3Rlc3QuaGl0ZW50ZXJwcmlzZXMucGwvaW5kZXgucGhwL2ZvcnVtLmh0bWw=

...and after logging on, he got redirected to the standard Joomla logout form instead of the requested restricted content (Forum in the above case).

Any suggestions how to solve that?

Thanks in advance.
Tom

Post edited by: tomcmok, at: 2008/08/18 00:54
The topic has been locked.

Re:Redirect to restricted content after sess. expired 3 years, 9 months ago #71618

  • tomcmok
  • tomcmok
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
...well I see that this works ok on this site - when I try to access the restricted conent I'm getting the info that I need to logon and after I do that, I'm getting redirected to the content I was requesting.

That mean's I'm missing something in my site configuration - could somebody point me at the solution?

Thanks,
Tom
The topic has been locked.

Re:Redirect to restricted content after sess. expired 3 years, 5 months ago #80950

  • hayama
  • hayama
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
I have been playing with this issue for a month now and cannot figure it out either. Is there any help out there that I am still missing?

It seems that com_user had something like
// Get the return URL
if (!$url = JRequest::getVar('return', '', 'method', 'base64')) {
$url = base64_encode($params->get($type));

that is supposed to return user to the registered article they clicked on after signing in... but it did not work for me. I want to use com_profiler anyway, but would still like users to be redirected to the article they clicked on, in this case an article from "read more" link on an email newsletter

Post edited by: hayama, at: 2008/11/30 10:57
The topic has been locked.

Re:Redirect to restricted content after sess. expi 3 years, 5 months ago #80953

  • beat
  • beat
  • ONLINE
  • Administrator
    Administrator
  • Posts: 6783
  • Karma: 327
This is a known problem of joomla 1.5.

There is a plugin on extensions.joomla.org that allows to change the redirect.
Beat
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Subscribe to CB documentation - Our templates - Paid Subscriptions - Get Hosting - Our Forge - Incubator
Visit my CB Profile - Send me a Private Message (PM)
--
help us spend more time coding by helping others in this forum, many thanks
The topic has been locked.

Re:Redirect to restricted content after sess. expired 3 years, 5 months ago #80960

  • hayama
  • hayama
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
Thank you beat

I did not know this was a known problem...

Are you referring to the
ADJR - Disable Joomla Registration
extension?
I have already installed this and indeed I do not get the com_user pages I get the com_profiler ones, but still do not get 'returned' correctly
The topic has been locked.

Re:Redirect to restricted content after sess. expi 3 years, 5 months ago #80997

  • hayama
  • hayama
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
or were you referring to the 'Read more' mambot from Run Digital?
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.76 seconds