vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   reading and settings cookies (https://vborg.vbsupport.ru/showthread.php?t=157231)

marocnl 09-07-2007 05:49 AM

reading and settings cookies
 
Hi,

I am trying to set and read cookies in my own PHP script which I include in the template system.
I get a blank page if I want to read a cookie like $_COOKIE['name'] if i do this after including global. If I put it before, it works, but I need it after the global. I saw that there is a vbsetcookie function. Is there also a VB read functions for cookies?
Or is there another way to read my own set cookies?

marocnl 09-08-2007 09:11 PM

Nobody has an idea for this? I can't find it in the docs or in this forum.

Opserty 09-08-2007 09:28 PM

Can you post the code for your page?

It may not be a problem with the cookie itself, maybe something else has gone when you try and include vB via global.php.

Paul M 09-08-2007 09:36 PM

They get moved from the $_COOKIE array to the $_REQUEST array.

Opserty 09-08-2007 09:54 PM

Now why was I expecting it be something simple like that? :(


All times are GMT. The time now is 01:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01280 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete