facebook - How to pass variables in PHP page to another page without using form? -


my project using related facebook. when user login $user variable in page know variable other page no. want know how pass variables using php without form? trying declare session not possible because it's in if condition

        <?php               if ($user):                              echo 'name:'. $user_profile['id']."<br />";                  echo 'name:'. $user_profile['name']."<br />";              else:          ?>  

$user_profile['id'] want pass other page.

try apc ..

use 1 on first page

    <?php     $bar = $user_profile['id'];     apc_store('foo', $bar); ?> 

and on other pages

<?php     apc_fetch('foo');     ?> 

use alternative php catch .reduce 50% time sessions

apc functions

apc_store — cache variable in data store

apc_fetch — fetch stored variable cache


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -