HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Cookie Problem

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#38360 (In Topic #8634)
Joe
Avatar

Honoured member

p.s. Welcome back Joe!

Yep, it's been a while! Hello all! :)

I'm using SMF as my forum software. Everytime I try to logout of ocPortal, for some reason, it doesn't log me out, but it does ask for a password when entering the Adminzone.

Only cookie settings in SMF is "Cookie name", which is set to: SMFCookie332
ocPortal base config is also showing: SMFCookie332:0 (user) & SMFCookie332:1 (pass)

I'm a noob when it comes to cookies, so am I supposed to have something configured in a different way?

Also, I completely redesigned ocPortal recently. Take a peek: http://www.sa-rpg.co.uk/

Back to the top
 
Posted
Rating:
#38361
Joe
Avatar

Honoured member

Matches the forums too: http://www.sa-rpg.co.uk/forum/ :D

Back to the top
 
Posted
Rating:
#38363
Avatar

Well-settled

Nice design Joe!!  
Back to the top
 
Posted
Rating:
#38368
Avatar

Hi Joe,

We have some debugging tips on the nuances of forum integration tutorial.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38370
Joe
Avatar

Honoured member

Yeah, I've seen that. Unfortunately there's no way of telling what SMF is set for, seeing as the only configurable setting relating to cookies is the "cookie name" setting.

Back to the top
 
Posted
Rating:
#38371
Joe
Avatar

Honoured member

Btw, thanks harry. :)

Back to the top
 
Posted
Rating:
#38373
Joe
Avatar

Honoured member

*Gets very anxious - Chris is reading the topic! :P

Back to the top
 
Posted
Rating:
#38374
Avatar

Community saint

I wish I could give you some help Joe but I really am not any better with cookies, but i did want to say that you did a hell of a job with that theme very well done and I may have to use some of your idea's If you don't mind.

 I'm not real big on building skins as of right now but if you would like some custom graphics done for your site I am more than willing as long as I have the time. -\-PhrozenStudios-/-
Back to the top
 
Posted
Rating:
#38381
Joe
Avatar

Honoured member

Thanks aldun. :)

Might I also add that if I clear my cookies from my domain:

  • I can login through the forums and get logged into ocPortal
  • I can login through ocPortal and get logged into the forums

Just logging out is where I have the issues.

  • If I logout through the forums, ocPortal keeps me logged in, but does ask me for a password when entering the Adminzone.
  • If I logout through ocPortal, it does absolutely nothing. It doesn't log me out of ocPortal or the forums. :/


Last edit: by Joe

Back to the top
 
Posted
Rating:
#38411
Avatar

What are your ocPortal cookie domain and paths set to?
Setting them both blank is probably the right thing to do, but it's hard to say for sure.

One useful debugging tip is using the 'Web developers toolbar' in Firefox, 'Web Developer\Cookies\View Cookie Information' on the context menu.
If you clear your cookies, and log into SMF, you can check to see what path/domain it has used.
Then if you clear your cookies again, and log into ocPortal, you can do the same.
You can then compare them.

It does sound like they are running on different domain/path combinations at the moment.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38418
Joe
Avatar

Honoured member

Not exactly sure what you're talking about regarding this "web developers tool" thing.

As for the cookie domain and path ocPortal is set to:

cookie_domain: .sa-rpg.co.uk
cookie_path: /

Back to the top
 
Posted
Rating:
#38425
Avatar

Community saint

Joe,

I think he is talking about an add on for FireFox for web developers. If you go to https://addons.mozilla.org/en-US/firefox/addon/60 you can see the add on that he is referring to. You must be running the FireFox web browser to use this add on. http://www.mozilla.com/en-US/firefox/


Last edit: by rick

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38479
Joe
Avatar

Honoured member

I've compared them and they both have the same cookie settings :/

Back to the top
 
Posted
Rating:
#38497
Avatar

Try blanking out ocPortal's defined cookie domain anyway. I believe there is a difference in how the cookie gets stored that way, but the toolbar doesn't seem to show that difference.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38504
Joe
Avatar

Honoured member

That worked, thanks. :D

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: