Recent Topics

1 May 18, 2009 18:36    

My b2evolution Version: 2.x

I am running b2evo version 2.4.6 which I have installed at http://people.<oursite.com>/b2evo. We installed b2evo so that people working at our company could each have their own blog for communication with their clients.

Each of our employees using the blogs has a folder set up for them at http://people.<oursite.com>/username, and I have created stub files that link their blog from http://people.<oursite.com>/b2evo to their user folders. Obviously, the stub files lie outside of the b2evo folder. We've done that to simplify the URL for our clients.

The problem is that when our employees are editing their blogs, if they want to view their updates and changes, they get logged out of the backoffice and have to log back in EVERY TIME they view their changes.

I have searched through the forums trying to find a solution for this. I found several _similar_ issues, and have tried the solutions I found, but none of them have solved this problem (including changing the cookiepath in the advanced.php file). IS there a solution to this problem, or are we stuck having to log in every time?

2 May 18, 2009 18:48

Welcome to the forums!

In file conf/_advanced.php around the line 300 add

$cookie_domain = '.yoursite.com';


and comment out or delete $cookie_domain auto-detect code.

3 May 18, 2009 19:44

/username && /b2evo ;)

you need to change the cookie path to root ;)

same file :

/**
 * This is the path that will be associated to cookies.
 *
 * That means cookies set by this b2evo install won't be seen outside of this path on the domain below.
 *
 * @global string Default: preg_replace( '#https?://[^/]+#', '', $baseurl )
 */
$cookie_path = '/';

¥

4 May 19, 2009 17:49

Thanks for the prompt replies. I changed the cookie domain and the cookie path (used both recommendations) and now users are able to remain logged in and still view their blogs. Thanks to you both - very much.

5 May 19, 2009 17:53

@¥åßßå I bet that was the "cookie_domain" :b

6 May 19, 2009 18:39

I'll bet you're wrong, the (sub).domain.tld doesn't change in their urls, only the path ;)

¥

7 May 19, 2009 19:03

What about this?

I found several _similar_ issues, and have tried the solutions I found, but none of them have solved this problem (including changing the [u]cookiepath [/u]in the advanced.php file).

Anyway, it's good this is sorted out.
@delweldj Happy blogging ;)

8 May 19, 2009 19:17

I guess it all depends what they changed it to ;)

¥


Form is loading...