Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
Guest - Sperto_Rox -

Pegando Sessoes Registradas

Question

Guest - Sperto_Rox -

olá denovo gente hehe eu denovo tongue.gif

eu gostaria de saber como eu pego todoas as sessoes que eu tenho registrada o_O

tentei achar no php.net mas não consegui..

me ajudem ae

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Bom, pelo o que eu entendi você quer o seguinte:

-> Primeiro você registra a Session.

<?
session_start(); //iniciando a session
$_SESSION['nome'] == "Andre"; //atribuindo o valor andre a variavel 
?>
e então você as le, em outra pagia etc, como quiser:
<?
session_start(); 
echo $_SESSION['nome']; // imprimindo o conteudo da variavel nome
?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148079
    • Total Posts
      643267
×
×
  • Create New...