Arrow Home
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Redirect to restricted content after sess. expired
Date: 2008/08/17 18:32 By: tomcmok Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Redirect to restricted content after sess. expired
Date: 2008/08/18 11:36 By: tomcmok Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
...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
Click here to see the profile of this user The topic has been locked.

Re:Redirect to restricted content after sess. expired
Date: 2008/11/30 10:52 By: hayama Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Redirect to restricted content after sess. expi
Date: 2008/11/30 10:58 By: beat Status: Admin  
Karma: 294  
Admin

Posts: 5992
graphgraph
This is a known problem of joomla 1.5.

There is a plugin on extensions.joomla.org that allows to change the redirect.
Beat (beat)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile | Read my CB Blog

--
help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The topic has been locked.

Re:Redirect to restricted content after sess. expired
Date: 2008/11/30 12:04 By: hayama Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Redirect to restricted content after sess. expi
Date: 2008/12/01 08:55 By: hayama Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
or were you referring to the 'Read more' mambot from Run Digital?
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 Next > End >>

CBSubs 1.0

CBSubs 1.0.3 released!

Find out more about the revolutionary new Joomla subscription system:

Info on CBSubs

CB 1.2.3 Documentation

Thank you bonus:

ProfileBook (+Blog) 1.2RC
ProfileGallery 1.2RC2
CB Privacy 1.0RC

What? Why? Where?

Click here for a yearly subscription: subscribe now

CB 1.2.3 Download

Community Builder 1.2.3
Stable and native for:
Joomla 1.5 & 1.0 & Mambo
(incl. CB 1.2.3 Installation pdf)
You need to be a registered member to download.

Full 180 pages updated
CB 1.2.3 documentation:
You need to be a CB doc subscriber to download.

CB Login