1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    3
    Vote Rating
    0
    S_panic is on a distinguished road

      0  

    Exclamation how to get session variable that php set it.

    how to get session variable that php set it.


    I set a session in a php with this code
    <?php
    ob_start();
    session_start();
    $x="sa";
    session_register($x);
    ?>

    and I want extJs to get a $_session[x] variable.
    how to do this?it can do this?

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      0  

    Default


    same way you would get any other piece of data from the server.
    either echo it into the php script's output, or fetch it separately via ajax.

  3. #3
    Ext User
    Join Date
    Feb 2008
    Posts
    23
    Vote Rating
    0
    victerz is on a distinguished road

      0  

    Default js php

    js php


    in javascript


    PHP Code:
    var yourJSvar = '<?php echo $yourPHPvar?>';
    and js variables into php are done via ajax etc

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi