Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:44 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Protected Pages Require Login Every Time
PostPosted: Tue Sep 26, 2006 11:48 pm 

Points:
After the initial login, and clicking "Click here to visit protected page #2!," page2.php appears, but a new login is required.

During the successful setup, only one warning appeared:

"Cookies Warning
If your web browser is not accepting cookies you must turn cookies ON, otherwise you will not be able to login at your own protected pages."

I tried several browsers on two machines. I am able to login to this forum, and everything I know says that cookies are turned on in all browsers.

I have PHPbb up and running on my server (which uses Apache), and I feel certain that the appropriate "session mod" is running.

What's the problem?


Report this post
Top
  
Reply with quote  
 Post subject: Is "Apache Module mod_usertrack" Required for CPP_
PostPosted: Wed Sep 27, 2006 12:50 am 

Points:
I did a phpinfo.php check on my server.

Here are the Apache Modules that are installed:

mod_auth_passthrough,
mod_log_bytes,
mod_bwlimited,
mod_php4,
mod_frontpage,
mod_ssl,
mod_setenvif,
mod_so,
mod_expires,
mod_auth,
mod_access,
mod_rewrite,
mod_alias,
mod_userdir,
mod_actions,
mod_imap,
mod_asis,
mod_cgi,
mod_dir,
mod_autoindex,
mod_include,
mod_status,
mod_negotiation,
mod_mime,
mod_log_config,
mod_env, http_core

Note that Apache Module mod_usertrack is NOT installed on this server. Is mod_usertrack required for cpp_28?

If so, that might be the reason why the cookies aren't being passed to the browsers.

(Of course, I hope that thais isn't the problem.)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 27, 2006 2:00 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
You get that problem because you don't have the correct value for $CookieDomain in settings.php:
Code:
$CookieDomain = ".sampleaddress.com";

You must change the value to your domain name where you have installed the script. If you enter for example www.sampleaddress.com the cookie will only be available at www.sampleaddress.com and not sampleaddress.com.

If you need the cookie to be available at both sampleaddress.com and www.sampleaddress.com then you need to set your domain name without www and with the dot:
Code:
$CookieDomain = ".sampleaddress.com";

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Correct Address in $CookieDomain
PostPosted: Wed Sep 27, 2006 10:41 pm 

Points:
bylla,

You do good work!

Everything works fine now, but you may be hearing from me again with a similar problem using "localhost" on my laptop Apache. Just let me check my code first.

In this installation I actually spelled my own domain name incorrectly.

Thank you.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Registered users: xlreariasd


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]