Loading ...
Sorry, an error occurred while loading the content.

Re: [phpKerala] Session is preserving across browser tabs or windows

Expand Messages
  • Arun Vasudevan
    Hi Friends, It worked for me fine. Make sure that register_globals in your php.ini is ON. Try the below codes. First create first.php file and then second.php.
    Message 1 of 22 , Aug 19, 2007
    • 0 Attachment
      Hi Friends,

      It worked for me fine. Make sure that register_globals in your php.ini is ON.

      Try the below codes. First create first.php file and then second.php. There content of the files are follows :

      first.php

      <?
      session_start();
      $test = "Hello world";
      session_register(test);
      ?>

      second.php

      <?
      session_start();
      echo $test;
      ?>
      Open browser and call first.php. Open a new page / browser window and open the second page. You should see "Hello World". Try it out and let us know it is working or not.

      regards,

      Arun Vasudevan


      Mahabaleshwar <mahihs2002@...> wrote: Sorry guys....,

      it gives some unexpected results. if there is any in between pages
      which is not loaded in to the browser then in each page it starts new
      session.

      need to do something else i think

      regards,
      Bhat
      --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@...> wrote:
      >
      > session.use_cookies specifies whether the module will use cookies to
      store the session id on the client side
      >
      > I am still surprised to hear you are successful in handling sessions
      in tabs seperately :). May be I must do some more experiments to
      confirm this.
      >
      > Best Regards
      > Praveen.
      >
      > Mahabaleshwar <mahihs2002@...> wrote:
      Ok
      >
      > I got one solution for this problem
      >
      > in php.ini make
      > session.use_cookies = 0
      >
      > the problem is using session cookies.if we disable it works fine
      >
      > plz tell me is there any problem by doing this?
      >
      > thanks for all
      >
      > regards,
      > bhat
      >
      > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
      > wrote:
      > >
      > > Hi praveen,
      > >
      > > Thank u for ur reply.
      > > But in my local server it creates different session files for each
      > > tabs/windows.I checked all the configuration settings in php.ini file
      > > but could not able to rectify.when I replaced local php.ini file with
      > > the server file same problem happens. Then I reverted the local
      > > php.ini file, the problem continued(I restarted apache each
      time).Then
      > > I rebooted local machine, now it again creates different session
      files.
      > > So I confused why this happens
      > >
      > > regards,
      > > bhat
      > >
      > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
      > > >
      > > > Hi,
      > > >
      > > > Actually it is not a 'problem' but a feature of browsers. Not
      with
      > > PHP, all the server side languages (asp.net, etc.) behave like this.
      > > The whole browser instance is considered as a single session.
      > > >
      > > > If you really want to keep each tabs different, you may need to
      > > avoid the usage of SESSION and find some tricks. One option is use
      > > database to handle your session vars.
      > > >
      > > > Best Regards
      > > > Praveen.
      > > >
      > > > Mahabaleshwar <mahihs2002@> wrote:
      > > > Dear all,
      > > >
      > > > I have a problem in PHP session handling. when I open my website in
      > > > two or more tabs in Firefox, Opera, IE 7.0 or use 'Control+N' in IE
      > > > 6.0 to open a new window, it is using the same session, so the
      another
      > > > tab is just a copy of the previous tab. What i do in one will
      affect
      > > > the another and vice-versa. Even if i open Firefox again, it
      will use
      > > > the same session of the previous session. But that is not what
      I need
      > > > mostly of time, specially when i want to copy information from one
      > > > place to another in my web application.
      > > >
      > > > How to solve this problem, plz help me.
      > > > Is there any configuration settings I have to do in php/apache.
      > > >
      > > > regards,
      > > > Bhat
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > [Non-text portions of this message have been removed]
      > > >
      > >
      >
      >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >






      ---------------------------------
      Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

      [Non-text portions of this message have been removed]
    • Praveen V
      Just a note: Remember that cookies are browser depended and you cannot predict whether end-user will be allowing it (security issues). Cookie = A
      Message 2 of 22 , Aug 20, 2007
      • 0 Attachment
        Just a note:

        Remember that cookies are browser depended and you cannot predict whether end-user will be 'allowing' it (security issues).

        Cookie = A not-reccomended method

        Best Regards
        Praveen.

        Arun Vasudevan <aruntechguy@...> wrote:
        Mahabaleshwar,

        It should work. Check here :

        Cookies in PHP

        http://www.plus2net.com/php_tutorial/php_cookies.php

        regards,

        Arun Vasudevan

        Mahabaleshwar <mahihs2002@...> wrote: Sorry guys....,

        it gives some unexpected results. if there is any in between pages
        which is not loaded in to the browser then in each page it starts new
        session.

        need to do something else i think

        regards,
        Bhat
        --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@...> wrote:
        >
        > session.use_cookies specifies whether the module will use cookies to
        store the session id on the client side
        >
        > I am still surprised to hear you are successful in handling sessions
        in tabs seperately :). May be I must do some more experiments to
        confirm this.
        >
        > Best Regards
        > Praveen.
        >
        > Mahabaleshwar <mahihs2002@...> wrote:
        Ok
        >
        > I got one solution for this problem
        >
        > in php.ini make
        > session.use_cookies = 0
        >
        > the problem is using session cookies.if we disable it works fine
        >
        > plz tell me is there any problem by doing this?
        >
        > thanks for all
        >
        > regards,
        > bhat
        >
        > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
        > wrote:
        > >
        > > Hi praveen,
        > >
        > > Thank u for ur reply.
        > > But in my local server it creates different session files for each
        > > tabs/windows.I checked all the configuration settings in php.ini file
        > > but could not able to rectify.when I replaced local php.ini file with
        > > the server file same problem happens. Then I reverted the local
        > > php.ini file, the problem continued(I restarted apache each
        time).Then
        > > I rebooted local machine, now it again creates different session
        files.
        > > So I confused why this happens
        > >
        > > regards,
        > > bhat
        > >
        > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
        > > >
        > > > Hi,
        > > >
        > > > Actually it is not a 'problem' but a feature of browsers. Not
        with
        > > PHP, all the server side languages (asp.net, etc.) behave like this.
        > > The whole browser instance is considered as a single session.
        > > >
        > > > If you really want to keep each tabs different, you may need to
        > > avoid the usage of SESSION and find some tricks. One option is use
        > > database to handle your session vars.
        > > >
        > > > Best Regards
        > > > Praveen.
        > > >
        > > > Mahabaleshwar <mahihs2002@> wrote:
        > > > Dear all,
        > > >
        > > > I have a problem in PHP session handling. when I open my website in
        > > > two or more tabs in Firefox, Opera, IE 7.0 or use 'Control+N' in IE
        > > > 6.0 to open a new window, it is using the same session, so the
        another
        > > > tab is just a copy of the previous tab. What i do in one will
        affect
        > > > the another and vice-versa. Even if i open Firefox again, it
        will use
        > > > the same session of the previous session. But that is not what
        I need
        > > > mostly of time, specially when i want to copy information from one
        > > > place to another in my web application.
        > > >
        > > > How to solve this problem, plz help me.
        > > > Is there any configuration settings I have to do in php/apache.
        > > >
        > > > regards,
        > > > Bhat
        > > >
        > > >
        > > >
        > > >
        > > >
        > > >
        > > > [Non-text portions of this message have been removed]
        > > >
        > >
        >
        >
        >
        >
        >
        >
        > [Non-text portions of this message have been removed]
        >





        ---------------------------------
        Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

        [Non-text portions of this message have been removed]






        [Non-text portions of this message have been removed]
      • Arun Vasudevan
        Hi, Yes, thats right. That s why I posted a tutorial on session variables after that. That feature is server depended, where default will be always on and
        Message 3 of 22 , Aug 20, 2007
        • 0 Attachment
          Hi,

          Yes, thats right. That's why I posted a tutorial on session variables after that. That feature is server depended, where default will be always "on" and you can customize it according to your needs by changing php.ini in your machine or by sending a request to the hosting provider if you using a hosting plan in a third party server.

          regards,

          Arun Vasudevan


          Praveen V <ninethsense@...> wrote: Just a note:

          Remember that cookies are browser depended and you cannot predict whether end-user will be 'allowing' it (security issues).

          Cookie = A not-reccomended method

          Best Regards
          Praveen.

          Arun Vasudevan <aruntechguy@...> wrote:
          Mahabaleshwar,

          It should work. Check here :

          Cookies in PHP

          http://www.plus2net.com/php_tutorial/php_cookies.php

          regards,

          Arun Vasudevan

          Mahabaleshwar <mahihs2002@...> wrote: Sorry guys....,

          it gives some unexpected results. if there is any in between pages
          which is not loaded in to the browser then in each page it starts new
          session.

          need to do something else i think

          regards,
          Bhat
          --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@...> wrote:
          >
          > session.use_cookies specifies whether the module will use cookies to
          store the session id on the client side
          >
          > I am still surprised to hear you are successful in handling sessions
          in tabs seperately :). May be I must do some more experiments to
          confirm this.
          >
          > Best Regards
          > Praveen.
          >
          > Mahabaleshwar <mahihs2002@...> wrote:
          Ok
          >
          > I got one solution for this problem
          >
          > in php.ini make
          > session.use_cookies = 0
          >
          > the problem is using session cookies.if we disable it works fine
          >
          > plz tell me is there any problem by doing this?
          >
          > thanks for all
          >
          > regards,
          > bhat
          >
          > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
          > wrote:
          > >
          > > Hi praveen,
          > >
          > > Thank u for ur reply.
          > > But in my local server it creates different session files for each
          > > tabs/windows.I checked all the configuration settings in php.ini file
          > > but could not able to rectify.when I replaced local php.ini file with
          > > the server file same problem happens. Then I reverted the local
          > > php.ini file, the problem continued(I restarted apache each
          time).Then
          > > I rebooted local machine, now it again creates different session
          files.
          > > So I confused why this happens
          > >
          > > regards,
          > > bhat
          > >
          > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
          > > >
          > > > Hi,
          > > >
          > > > Actually it is not a 'problem' but a feature of browsers. Not
          with
          > > PHP, all the server side languages (asp.net, etc.) behave like this.
          > > The whole browser instance is considered as a single session.
          > > >
          > > > If you really want to keep each tabs different, you may need to
          > > avoid the usage of SESSION and find some tricks. One option is use
          > > database to handle your session vars.
          > > >
          > > > Best Regards
          > > > Praveen.
          > > >
          > > > Mahabaleshwar <mahihs2002@> wrote:
          > > > Dear all,
          > > >
          > > > I have a problem in PHP session handling. when I open my website in
          > > > two or more tabs in Firefox, Opera, IE 7.0 or use 'Control+N' in IE
          > > > 6.0 to open a new window, it is using the same session, so the
          another
          > > > tab is just a copy of the previous tab. What i do in one will
          affect
          > > > the another and vice-versa. Even if i open Firefox again, it
          will use
          > > > the same session of the previous session. But that is not what
          I need
          > > > mostly of time, specially when i want to copy information from one
          > > > place to another in my web application.
          > > >
          > > > How to solve this problem, plz help me.
          > > > Is there any configuration settings I have to do in php/apache.
          > > >
          > > > regards,
          > > > Bhat
          > > >
          > > >
          > > >
          > > >
          > > >
          > > >
          > > > [Non-text portions of this message have been removed]
          > > >
          > >
          >
          >
          >
          >
          >
          >
          > [Non-text portions of this message have been removed]
          >

          ---------------------------------
          Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

          [Non-text portions of this message have been removed]

          [Non-text portions of this message have been removed]






          ---------------------------------
          Got a little couch potato?
          Check out fun summer activities for kids.

          [Non-text portions of this message have been removed]
        • Mahabaleshwar
          No man, if communication is btween two pages then it works fine, no problem in that. but when there is intermediate page which is not loaded in to the browser
          Message 4 of 22 , Aug 20, 2007
          • 0 Attachment
            No man,

            if communication is btween two pages then it works fine, no problem in
            that. but when there is intermediate page which is not loaded in to
            the browser and there we use header() function to redirect to third
            then in the third page new session will be started instead of
            continuing the existing session.

            the sample code is given below please check

            first.php
            <?session_start();

            $_SESSION['var1'] = rand(2,8);

            print("<html><body><form name='frm1' method='post' action='second.php'");
            print("<input type='submit' value='submit'>");
            print("</form>");
            print("</body></html>");

            ?>

            second.php
            <?session_start();
            header("Location: third.php");
            ?>

            third.php
            <?session_start();
            print($_SESSION['var1']);
            ?>

            --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@...>
            wrote:
            >
            > Hi Friends,
            >
            > It worked for me fine. Make sure that register_globals in your
            php.ini is ON.
            >
            > Try the below codes. First create first.php file and then
            second.php. There content of the files are follows :
            >
            > first.php
            >
            > <?
            > session_start();
            > $test = "Hello world";
            > session_register(test);
            > ?>
            >
            > second.php
            >
            > <?
            > session_start();
            > echo $test;
            > ?>
            > Open browser and call first.php. Open a new page / browser window
            and open the second page. You should see "Hello World". Try it out and
            let us know it is working or not.
            >
            > regards,
            >
            > Arun Vasudevan
            >
            >
            > Mahabaleshwar <mahihs2002@...> wrote:
            Sorry guys....,
            >
            > it gives some unexpected results. if there is any in between pages
            > which is not loaded in to the browser then in each page it starts new
            > session.
            >
            > need to do something else i think
            >
            > regards,
            > Bhat
            > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
            > >
            > > session.use_cookies specifies whether the module will use cookies to
            > store the session id on the client side
            > >
            > > I am still surprised to hear you are successful in handling sessions
            > in tabs seperately :). May be I must do some more experiments to
            > confirm this.
            > >
            > > Best Regards
            > > Praveen.
            > >
            > > Mahabaleshwar <mahihs2002@> wrote:
            > Ok
            > >
            > > I got one solution for this problem
            > >
            > > in php.ini make
            > > session.use_cookies = 0
            > >
            > > the problem is using session cookies.if we disable it works fine
            > >
            > > plz tell me is there any problem by doing this?
            > >
            > > thanks for all
            > >
            > > regards,
            > > bhat
            > >
            > > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
            > > wrote:
            > > >
            > > > Hi praveen,
            > > >
            > > > Thank u for ur reply.
            > > > But in my local server it creates different session files for each
            > > > tabs/windows.I checked all the configuration settings in
            php.ini file
            > > > but could not able to rectify.when I replaced local php.ini
            file with
            > > > the server file same problem happens. Then I reverted the local
            > > > php.ini file, the problem continued(I restarted apache each
            > time).Then
            > > > I rebooted local machine, now it again creates different session
            > files.
            > > > So I confused why this happens
            > > >
            > > > regards,
            > > > bhat
            > > >
            > > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@>
            wrote:
            > > > >
            > > > > Hi,
            > > > >
            > > > > Actually it is not a 'problem' but a feature of browsers. Not
            > with
            > > > PHP, all the server side languages (asp.net, etc.) behave like
            this.
            > > > The whole browser instance is considered as a single session.
            > > > >
            > > > > If you really want to keep each tabs different, you may
            need to
            > > > avoid the usage of SESSION and find some tricks. One option is use
            > > > database to handle your session vars.
            > > > >
            > > > > Best Regards
            > > > > Praveen.
            > > > >
            > > > > Mahabaleshwar <mahihs2002@> wrote:
            > > > > Dear all,
            > > > >
            > > > > I have a problem in PHP session handling. when I open my
            website in
            > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
            'Control+N' in IE
            > > > > 6.0 to open a new window, it is using the same session, so the
            > another
            > > > > tab is just a copy of the previous tab. What i do in one will
            > affect
            > > > > the another and vice-versa. Even if i open Firefox again, it
            > will use
            > > > > the same session of the previous session. But that is not what
            > I need
            > > > > mostly of time, specially when i want to copy information
            from one
            > > > > place to another in my web application.
            > > > >
            > > > > How to solve this problem, plz help me.
            > > > > Is there any configuration settings I have to do in php/apache.
            > > > >
            > > > > regards,
            > > > > Bhat
            > > > >
            > > > >
            > > > >
            > > > >
            > > > >
            > > > >
            > > > > [Non-text portions of this message have been removed]
            > > > >
            > > >
            > >
            > >
            > >
            > >
            > >
            > >
            > > [Non-text portions of this message have been removed]
            > >
            >
            >
            >
            >
            >
            >
            > ---------------------------------
            > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
            user panel and lay it on us.
            >
            > [Non-text portions of this message have been removed]
            >
          • Arun Vasudevan
            Hi, Please check your first post. I answered for the first post, i.e., how to pass values between different browser tabs or pages. Now its becoming more
            Message 5 of 22 , Aug 20, 2007
            • 0 Attachment
              Hi,

              Please check your first post. I answered for the first post, i.e., how to pass values between different browser tabs or pages.

              Now its becoming more confusing. I think if you can explain your real need with a good example, i hope that we can give you a more acceptable answer.

              regards,

              Arun Vasudevan


              Mahabaleshwar <mahihs2002@...> wrote: No man,

              if communication is btween two pages then it works fine, no problem in
              that. but when there is intermediate page which is not loaded in to
              the browser and there we use header() function to redirect to third
              then in the third page new session will be started instead of
              continuing the existing session.

              the sample code is given below please check

              first.php
              <?session_start();

              $_SESSION['var1'] = rand(2,8);

              print("<html><body><form name='frm1' method='post' action='second.php'");
              print("<input type='submit' value='submit'>");
              print("</form>");
              print("</body></html>");

              ?>

              second.php
              <?session_start();
              header("Location: third.php");
              ?>

              third.php
              <?session_start();
              print($_SESSION['var1']);
              ?>

              --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@...>
              wrote:
              >
              > Hi Friends,
              >
              > It worked for me fine. Make sure that register_globals in your
              php.ini is ON.
              >
              > Try the below codes. First create first.php file and then
              second.php. There content of the files are follows :
              >
              > first.php
              >
              > <?
              > session_start();
              > $test = "Hello world";
              > session_register(test);
              > ?>
              >
              > second.php
              >
              > <?
              > session_start();
              > echo $test;
              > ?>
              > Open browser and call first.php. Open a new page / browser window
              and open the second page. You should see "Hello World". Try it out and
              let us know it is working or not.
              >
              > regards,
              >
              > Arun Vasudevan
              >
              >
              > Mahabaleshwar <mahihs2002@...> wrote:
              Sorry guys....,
              >
              > it gives some unexpected results. if there is any in between pages
              > which is not loaded in to the browser then in each page it starts new
              > session.
              >
              > need to do something else i think
              >
              > regards,
              > Bhat
              > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
              > >
              > > session.use_cookies specifies whether the module will use cookies to
              > store the session id on the client side
              > >
              > > I am still surprised to hear you are successful in handling sessions
              > in tabs seperately :). May be I must do some more experiments to
              > confirm this.
              > >
              > > Best Regards
              > > Praveen.
              > >
              > > Mahabaleshwar <mahihs2002@> wrote:
              > Ok
              > >
              > > I got one solution for this problem
              > >
              > > in php.ini make
              > > session.use_cookies = 0
              > >
              > > the problem is using session cookies.if we disable it works fine
              > >
              > > plz tell me is there any problem by doing this?
              > >
              > > thanks for all
              > >
              > > regards,
              > > bhat
              > >
              > > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
              > > wrote:
              > > >
              > > > Hi praveen,
              > > >
              > > > Thank u for ur reply.
              > > > But in my local server it creates different session files for each
              > > > tabs/windows.I checked all the configuration settings in
              php.ini file
              > > > but could not able to rectify.when I replaced local php.ini
              file with
              > > > the server file same problem happens. Then I reverted the local
              > > > php.ini file, the problem continued(I restarted apache each
              > time).Then
              > > > I rebooted local machine, now it again creates different session
              > files.
              > > > So I confused why this happens
              > > >
              > > > regards,
              > > > bhat
              > > >
              > > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@>
              wrote:
              > > > >
              > > > > Hi,
              > > > >
              > > > > Actually it is not a 'problem' but a feature of browsers. Not
              > with
              > > > PHP, all the server side languages (asp.net, etc.) behave like
              this.
              > > > The whole browser instance is considered as a single session.
              > > > >
              > > > > If you really want to keep each tabs different, you may
              need to
              > > > avoid the usage of SESSION and find some tricks. One option is use
              > > > database to handle your session vars.
              > > > >
              > > > > Best Regards
              > > > > Praveen.
              > > > >
              > > > > Mahabaleshwar <mahihs2002@> wrote:
              > > > > Dear all,
              > > > >
              > > > > I have a problem in PHP session handling. when I open my
              website in
              > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
              'Control+N' in IE
              > > > > 6.0 to open a new window, it is using the same session, so the
              > another
              > > > > tab is just a copy of the previous tab. What i do in one will
              > affect
              > > > > the another and vice-versa. Even if i open Firefox again, it
              > will use
              > > > > the same session of the previous session. But that is not what
              > I need
              > > > > mostly of time, specially when i want to copy information
              from one
              > > > > place to another in my web application.
              > > > >
              > > > > How to solve this problem, plz help me.
              > > > > Is there any configuration settings I have to do in php/apache.
              > > > >
              > > > > regards,
              > > > > Bhat
              > > > >
              > > > >
              > > > >
              > > > >
              > > > >
              > > > >
              > > > > [Non-text portions of this message have been removed]
              > > > >
              > > >
              > >
              > >
              > >
              > >
              > >
              > >
              > > [Non-text portions of this message have been removed]
              > >
              >
              >
              >
              >
              >
              >
              > ---------------------------------
              > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
              user panel and lay it on us.
              >
              > [Non-text portions of this message have been removed]
              >






              ---------------------------------
              Luggage? GPS? Comic books?
              Check out fitting gifts for grads at Yahoo! Search.

              [Non-text portions of this message have been removed]
            • Mahabaleshwar
              Hi arun, my need is I want unique sessions for each tabs/windows.Changes made in one tab should not affect another tab.means different users should be able to
              Message 6 of 22 , Aug 20, 2007
              • 0 Attachment
                Hi arun,

                my need is I want unique sessions for each tabs/windows.Changes made
                in one tab should not affect another tab.means different users should
                be able to login through different tabs/windows. Currently what
                happens is if you login in one tab and open a new tab/window and login
                as a different user, the first tab login will change with second user
                details.This only happens in firefox, opera not in IE.

                For solving the above problem I changed configuration settings in
                php.ini as

                sesssion.use_cookies = 0;

                when I did that the session is not working properly as I mentioned in
                the last mail.

                PHP sessions are working perfectly. Only problem is it shares data
                when we open in different tabs, that i dont want. I want each tabs to
                be unique.

                thanks & regards,
                bhat
                --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@...>
                wrote:
                >
                > Hi,
                >
                > Please check your first post. I answered for the first post, i.e.,
                how to pass values between different browser tabs or pages.
                >
                > Now its becoming more confusing. I think if you can explain your
                real need with a good example, i hope that we can give you a more
                acceptable answer.
                >
                > regards,
                >
                > Arun Vasudevan
                >
                >
                > Mahabaleshwar <mahihs2002@...> wrote:
                No man,
                >
                > if communication is btween two pages then it works fine, no problem in
                > that. but when there is intermediate page which is not loaded in to
                > the browser and there we use header() function to redirect to third
                > then in the third page new session will be started instead of
                > continuing the existing session.
                >
                > the sample code is given below please check
                >
                > first.php
                > <?session_start();
                >
                > $_SESSION['var1'] = rand(2,8);
                >
                > print("<html><body><form name='frm1' method='post'
                action='second.php'");
                > print("<input type='submit' value='submit'>");
                > print("</form>");
                > print("</body></html>");
                >
                > ?>
                >
                > second.php
                > <?session_start();
                > header("Location: third.php");
                > ?>
                >
                > third.php
                > <?session_start();
                > print($_SESSION['var1']);
                > ?>
                >
                > --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@>
                > wrote:
                > >
                > > Hi Friends,
                > >
                > > It worked for me fine. Make sure that register_globals in your
                > php.ini is ON.
                > >
                > > Try the below codes. First create first.php file and then
                > second.php. There content of the files are follows :
                > >
                > > first.php
                > >
                > > <?
                > > session_start();
                > > $test = "Hello world";
                > > session_register(test);
                > > ?>
                > >
                > > second.php
                > >
                > > <?
                > > session_start();
                > > echo $test;
                > > ?>
                > > Open browser and call first.php. Open a new page / browser window
                > and open the second page. You should see "Hello World". Try it out and
                > let us know it is working or not.
                > >
                > > regards,
                > >
                > > Arun Vasudevan
                > >
                > >
                > > Mahabaleshwar <mahihs2002@> wrote:
                > Sorry guys....,
                > >
                > > it gives some unexpected results. if there is any in between pages
                > > which is not loaded in to the browser then in each page it
                starts new
                > > session.
                > >
                > > need to do something else i think
                > >
                > > regards,
                > > Bhat
                > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
                > > >
                > > > session.use_cookies specifies whether the module will use
                cookies to
                > > store the session id on the client side
                > > >
                > > > I am still surprised to hear you are successful in handling
                sessions
                > > in tabs seperately :). May be I must do some more experiments to
                > > confirm this.
                > > >
                > > > Best Regards
                > > > Praveen.
                > > >
                > > > Mahabaleshwar <mahihs2002@> wrote:
                > > Ok
                > > >
                > > > I got one solution for this problem
                > > >
                > > > in php.ini make
                > > > session.use_cookies = 0
                > > >
                > > > the problem is using session cookies.if we disable it works fine
                > > >
                > > > plz tell me is there any problem by doing this?
                > > >
                > > > thanks for all
                > > >
                > > > regards,
                > > > bhat
                > > >
                > > > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
                > > > wrote:
                > > > >
                > > > > Hi praveen,
                > > > >
                > > > > Thank u for ur reply.
                > > > > But in my local server it creates different session files
                for each
                > > > > tabs/windows.I checked all the configuration settings in
                > php.ini file
                > > > > but could not able to rectify.when I replaced local php.ini
                > file with
                > > > > the server file same problem happens. Then I reverted the local
                > > > > php.ini file, the problem continued(I restarted apache each
                > > time).Then
                > > > > I rebooted local machine, now it again creates different
                session
                > > files.
                > > > > So I confused why this happens
                > > > >
                > > > > regards,
                > > > > bhat
                > > > >
                > > > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@>
                > wrote:
                > > > > >
                > > > > > Hi,
                > > > > >
                > > > > > Actually it is not a 'problem' but a feature of
                browsers. Not
                > > with
                > > > > PHP, all the server side languages (asp.net, etc.) behave like
                > this.
                > > > > The whole browser instance is considered as a single session.
                > > > > >
                > > > > > If you really want to keep each tabs different, you may
                > need to
                > > > > avoid the usage of SESSION and find some tricks. One option
                is use
                > > > > database to handle your session vars.
                > > > > >
                > > > > > Best Regards
                > > > > > Praveen.
                > > > > >
                > > > > > Mahabaleshwar <mahihs2002@> wrote:
                > > > > > Dear all,
                > > > > >
                > > > > > I have a problem in PHP session handling. when I open my
                > website in
                > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
                > 'Control+N' in IE
                > > > > > 6.0 to open a new window, it is using the same session,
                so the
                > > another
                > > > > > tab is just a copy of the previous tab. What i do in one will
                > > affect
                > > > > > the another and vice-versa. Even if i open Firefox again, it
                > > will use
                > > > > > the same session of the previous session. But that is not
                what
                > > I need
                > > > > > mostly of time, specially when i want to copy information
                > from one
                > > > > > place to another in my web application.
                > > > > >
                > > > > > How to solve this problem, plz help me.
                > > > > > Is there any configuration settings I have to do in
                php/apache.
                > > > > >
                > > > > > regards,
                > > > > > Bhat
                > > > > >
                > > > > >
                > > > > >
                > > > > >
                > > > > >
                > > > > >
                > > > > > [Non-text portions of this message have been removed]
                > > > > >
                > > > >
                > > >
                > > >
                > > >
                > > >
                > > >
                > > >
                > > > [Non-text portions of this message have been removed]
                > > >
                > >
                > >
                > >
                > >
                > >
                > >
                > > ---------------------------------
                > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
                > user panel and lay it on us.
                > >
                > > [Non-text portions of this message have been removed]
                > >
                >
                >
                >
                >
                >
                >
                > ---------------------------------
                > Luggage? GPS? Comic books?
                > Check out fitting gifts for grads at Yahoo! Search.
                >
                > [Non-text portions of this message have been removed]
                >
              • Mahabaleshwar
                To become more clearer please check bug reported in bugzilla.mozilla.org Bug 371241 Bug 378442 Bug 392860 regards, bhat ... how to pass values between
                Message 7 of 22 , Aug 20, 2007
                • 0 Attachment
                  To become more clearer

                  please check bug reported in bugzilla.mozilla.org
                  Bug 371241
                  Bug 378442
                  Bug 392860

                  regards,
                  bhat
                  --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@...>
                  wrote:
                  >
                  > Hi,
                  >
                  > Please check your first post. I answered for the first post, i.e.,
                  how to pass values between different browser tabs or pages.
                  >
                  > Now its becoming more confusing. I think if you can explain your
                  real need with a good example, i hope that we can give you a more
                  acceptable answer.
                  >
                  > regards,
                  >
                  > Arun Vasudevan
                  >
                  >
                  > Mahabaleshwar <mahihs2002@...> wrote:
                  No man,
                  >
                  > if communication is btween two pages then it works fine, no problem in
                  > that. but when there is intermediate page which is not loaded in to
                  > the browser and there we use header() function to redirect to third
                  > then in the third page new session will be started instead of
                  > continuing the existing session.
                  >
                  > the sample code is given below please check
                  >
                  > first.php
                  > <?session_start();
                  >
                  > $_SESSION['var1'] = rand(2,8);
                  >
                  > print("<html><body><form name='frm1' method='post'
                  action='second.php'");
                  > print("<input type='submit' value='submit'>");
                  > print("</form>");
                  > print("</body></html>");
                  >
                  > ?>
                  >
                  > second.php
                  > <?session_start();
                  > header("Location: third.php");
                  > ?>
                  >
                  > third.php
                  > <?session_start();
                  > print($_SESSION['var1']);
                  > ?>
                  >
                  > --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@>
                  > wrote:
                  > >
                  > > Hi Friends,
                  > >
                  > > It worked for me fine. Make sure that register_globals in your
                  > php.ini is ON.
                  > >
                  > > Try the below codes. First create first.php file and then
                  > second.php. There content of the files are follows :
                  > >
                  > > first.php
                  > >
                  > > <?
                  > > session_start();
                  > > $test = "Hello world";
                  > > session_register(test);
                  > > ?>
                  > >
                  > > second.php
                  > >
                  > > <?
                  > > session_start();
                  > > echo $test;
                  > > ?>
                  > > Open browser and call first.php. Open a new page / browser window
                  > and open the second page. You should see "Hello World". Try it out and
                  > let us know it is working or not.
                  > >
                  > > regards,
                  > >
                  > > Arun Vasudevan
                  > >
                  > >
                  > > Mahabaleshwar <mahihs2002@> wrote:
                  > Sorry guys....,
                  > >
                  > > it gives some unexpected results. if there is any in between pages
                  > > which is not loaded in to the browser then in each page it
                  starts new
                  > > session.
                  > >
                  > > need to do something else i think
                  > >
                  > > regards,
                  > > Bhat
                  > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
                  > > >
                  > > > session.use_cookies specifies whether the module will use
                  cookies to
                  > > store the session id on the client side
                  > > >
                  > > > I am still surprised to hear you are successful in handling
                  sessions
                  > > in tabs seperately :). May be I must do some more experiments to
                  > > confirm this.
                  > > >
                  > > > Best Regards
                  > > > Praveen.
                  > > >
                  > > > Mahabaleshwar <mahihs2002@> wrote:
                  > > Ok
                  > > >
                  > > > I got one solution for this problem
                  > > >
                  > > > in php.ini make
                  > > > session.use_cookies = 0
                  > > >
                  > > > the problem is using session cookies.if we disable it works fine
                  > > >
                  > > > plz tell me is there any problem by doing this?
                  > > >
                  > > > thanks for all
                  > > >
                  > > > regards,
                  > > > bhat
                  > > >
                  > > > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
                  > > > wrote:
                  > > > >
                  > > > > Hi praveen,
                  > > > >
                  > > > > Thank u for ur reply.
                  > > > > But in my local server it creates different session files
                  for each
                  > > > > tabs/windows.I checked all the configuration settings in
                  > php.ini file
                  > > > > but could not able to rectify.when I replaced local php.ini
                  > file with
                  > > > > the server file same problem happens. Then I reverted the local
                  > > > > php.ini file, the problem continued(I restarted apache each
                  > > time).Then
                  > > > > I rebooted local machine, now it again creates different
                  session
                  > > files.
                  > > > > So I confused why this happens
                  > > > >
                  > > > > regards,
                  > > > > bhat
                  > > > >
                  > > > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@>
                  > wrote:
                  > > > > >
                  > > > > > Hi,
                  > > > > >
                  > > > > > Actually it is not a 'problem' but a feature of
                  browsers. Not
                  > > with
                  > > > > PHP, all the server side languages (asp.net, etc.) behave like
                  > this.
                  > > > > The whole browser instance is considered as a single session.
                  > > > > >
                  > > > > > If you really want to keep each tabs different, you may
                  > need to
                  > > > > avoid the usage of SESSION and find some tricks. One option
                  is use
                  > > > > database to handle your session vars.
                  > > > > >
                  > > > > > Best Regards
                  > > > > > Praveen.
                  > > > > >
                  > > > > > Mahabaleshwar <mahihs2002@> wrote:
                  > > > > > Dear all,
                  > > > > >
                  > > > > > I have a problem in PHP session handling. when I open my
                  > website in
                  > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
                  > 'Control+N' in IE
                  > > > > > 6.0 to open a new window, it is using the same session,
                  so the
                  > > another
                  > > > > > tab is just a copy of the previous tab. What i do in one will
                  > > affect
                  > > > > > the another and vice-versa. Even if i open Firefox again, it
                  > > will use
                  > > > > > the same session of the previous session. But that is not
                  what
                  > > I need
                  > > > > > mostly of time, specially when i want to copy information
                  > from one
                  > > > > > place to another in my web application.
                  > > > > >
                  > > > > > How to solve this problem, plz help me.
                  > > > > > Is there any configuration settings I have to do in
                  php/apache.
                  > > > > >
                  > > > > > regards,
                  > > > > > Bhat
                  > > > > >
                  > > > > >
                  > > > > >
                  > > > > >
                  > > > > >
                  > > > > >
                  > > > > > [Non-text portions of this message have been removed]
                  > > > > >
                  > > > >
                  > > >
                  > > >
                  > > >
                  > > >
                  > > >
                  > > >
                  > > > [Non-text portions of this message have been removed]
                  > > >
                  > >
                  > >
                  > >
                  > >
                  > >
                  > >
                  > > ---------------------------------
                  > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
                  > user panel and lay it on us.
                  > >
                  > > [Non-text portions of this message have been removed]
                  > >
                  >
                  >
                  >
                  >
                  >
                  >
                  > ---------------------------------
                  > Luggage? GPS? Comic books?
                  > Check out fitting gifts for grads at Yahoo! Search.
                  >
                  > [Non-text portions of this message have been removed]
                  >
                • Praveen V
                  I see answers for the post in http://au2.php.net/session Didnt it help you? Best Regards Praveen. Mahabaleshwar wrote:
                  Message 8 of 22 , Aug 20, 2007
                  • 0 Attachment
                    I see answers for the post in http://au2.php.net/session

                    Didnt it help you?

                    Best Regards
                    Praveen.

                    Mahabaleshwar <mahihs2002@...> wrote: To become more clearer

                    please check bug reported in bugzilla.mozilla.org
                    Bug 371241
                    Bug 378442
                    Bug 392860

                    regards,
                    bhat
                    --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@...>
                    wrote:
                    >
                    > Hi,
                    >
                    > Please check your first post. I answered for the first post, i.e.,
                    how to pass values between different browser tabs or pages.
                    >
                    > Now its becoming more confusing. I think if you can explain your
                    real need with a good example, i hope that we can give you a more
                    acceptable answer.
                    >
                    > regards,
                    >
                    > Arun Vasudevan
                    >
                    >
                    > Mahabaleshwar <mahihs2002@...> wrote:
                    No man,
                    >
                    > if communication is btween two pages then it works fine, no problem in
                    > that. but when there is intermediate page which is not loaded in to
                    > the browser and there we use header() function to redirect to third
                    > then in the third page new session will be started instead of
                    > continuing the existing session.
                    >
                    > the sample code is given below please check
                    >
                    > first.php
                    > <?session_start();
                    >
                    > $_SESSION['var1'] = rand(2,8);
                    >
                    > print("<html><body><form name='frm1' method='post'
                    action='second.php'");
                    > print("<input type='submit' value='submit'>");
                    > print("</form>");
                    > print("</body></html>");
                    >
                    > ?>
                    >
                    > second.php
                    > <?session_start();
                    > header("Location: third.php");
                    > ?>
                    >
                    > third.php
                    > <?session_start();
                    > print($_SESSION['var1']);
                    > ?>
                    >
                    > --- In phpKeralaUg@yahoogroups.com, Arun Vasudevan <aruntechguy@>
                    > wrote:
                    > >
                    > > Hi Friends,
                    > >
                    > > It worked for me fine. Make sure that register_globals in your
                    > php.ini is ON.
                    > >
                    > > Try the below codes. First create first.php file and then
                    > second.php. There content of the files are follows :
                    > >
                    > > first.php
                    > >
                    > > <?
                    > > session_start();
                    > > $test = "Hello world";
                    > > session_register(test);
                    > > ?>
                    > >
                    > > second.php
                    > >
                    > > <?
                    > > session_start();
                    > > echo $test;
                    > > ?>
                    > > Open browser and call first.php. Open a new page / browser window
                    > and open the second page. You should see "Hello World". Try it out and
                    > let us know it is working or not.
                    > >
                    > > regards,
                    > >
                    > > Arun Vasudevan
                    > >
                    > >
                    > > Mahabaleshwar <mahihs2002@> wrote:
                    > Sorry guys....,
                    > >
                    > > it gives some unexpected results. if there is any in between pages
                    > > which is not loaded in to the browser then in each page it
                    starts new
                    > > session.
                    > >
                    > > need to do something else i think
                    > >
                    > > regards,
                    > > Bhat
                    > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@> wrote:
                    > > >
                    > > > session.use_cookies specifies whether the module will use
                    cookies to
                    > > store the session id on the client side
                    > > >
                    > > > I am still surprised to hear you are successful in handling
                    sessions
                    > > in tabs seperately :). May be I must do some more experiments to
                    > > confirm this.
                    > > >
                    > > > Best Regards
                    > > > Praveen.
                    > > >
                    > > > Mahabaleshwar <mahihs2002@> wrote:
                    > > Ok
                    > > >
                    > > > I got one solution for this problem
                    > > >
                    > > > in php.ini make
                    > > > session.use_cookies = 0
                    > > >
                    > > > the problem is using session cookies.if we disable it works fine
                    > > >
                    > > > plz tell me is there any problem by doing this?
                    > > >
                    > > > thanks for all
                    > > >
                    > > > regards,
                    > > > bhat
                    > > >
                    > > > --- In phpKeralaUg@yahoogroups.com, "Mahabaleshwar" <mahihs2002@>
                    > > > wrote:
                    > > > >
                    > > > > Hi praveen,
                    > > > >
                    > > > > Thank u for ur reply.
                    > > > > But in my local server it creates different session files
                    for each
                    > > > > tabs/windows.I checked all the configuration settings in
                    > php.ini file
                    > > > > but could not able to rectify.when I replaced local php.ini
                    > file with
                    > > > > the server file same problem happens. Then I reverted the local
                    > > > > php.ini file, the problem continued(I restarted apache each
                    > > time).Then
                    > > > > I rebooted local machine, now it again creates different
                    session
                    > > files.
                    > > > > So I confused why this happens
                    > > > >
                    > > > > regards,
                    > > > > bhat
                    > > > >
                    > > > > --- In phpKeralaUg@yahoogroups.com, Praveen V <ninethsense@>
                    > wrote:
                    > > > > >
                    > > > > > Hi,
                    > > > > >
                    > > > > > Actually it is not a 'problem' but a feature of
                    browsers. Not
                    > > with
                    > > > > PHP, all the server side languages (asp.net, etc.) behave like
                    > this.
                    > > > > The whole browser instance is considered as a single session.
                    > > > > >
                    > > > > > If you really want to keep each tabs different, you may
                    > need to
                    > > > > avoid the usage of SESSION and find some tricks. One option
                    is use
                    > > > > database to handle your session vars.
                    > > > > >
                    > > > > > Best Regards
                    > > > > > Praveen.
                    > > > > >
                    > > > > > Mahabaleshwar <mahihs2002@> wrote:
                    > > > > > Dear all,
                    > > > > >
                    > > > > > I have a problem in PHP session handling. when I open my
                    > website in
                    > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
                    > 'Control+N' in IE
                    > > > > > 6.0 to open a new window, it is using the same session,
                    so the
                    > > another
                    > > > > > tab is just a copy of the previous tab. What i do in one will
                    > > affect
                    > > > > > the another and vice-versa. Even if i open Firefox again, it
                    > > will use
                    > > > > > the same session of the previous session. But that is not
                    what
                    > > I need
                    > > > > > mostly of time, specially when i want to copy information
                    > from one
                    > > > > > place to another in my web application.
                    > > > > >
                    > > > > > How to solve this problem, plz help me.
                    > > > > > Is there any configuration settings I have to do in
                    php/apache.
                    > > > > >
                    > > > > > regards,
                    > > > > > Bhat
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > > >
                    > > > > > [Non-text portions of this message have been removed]
                    > > > > >
                    > > > >
                    > > >
                    > > >
                    > > >
                    > > >
                    > > >
                    > > >
                    > > > [Non-text portions of this message have been removed]
                    > > >
                    > >
                    > >
                    > >
                    > >
                    > >
                    > >
                    > > ---------------------------------
                    > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
                    > user panel and lay it on us.
                    > >
                    > > [Non-text portions of this message have been removed]
                    > >
                    >
                    >
                    >
                    >
                    >
                    >
                    > ---------------------------------
                    > Luggage? GPS? Comic books?
                    > Check out fitting gifts for grads at Yahoo! Search.
                    >
                    > [Non-text portions of this message have been removed]
                    >






                    [Non-text portions of this message have been removed]
                  • ArunRaj R
                    dear friend, No such requirements are usually expected. Since only a user is expected to use a system for browsing at a time. and so he should be maintaining
                    Message 9 of 22 , Aug 23, 2007
                    • 0 Attachment
                      dear friend,

                      No such requirements are usually expected. Since only a user is expected to use a system for browsing at a time. and so he should be maintaining a single session at time.

                      In this case i assume you need to maintain two sessions for testing purposes. For this the easiest and effective solution is use more than one browsers. Say IE, Firefox, Opera Using these three you can maintain 3 different sessions in a single system.

                      Still if you wanna go ahead with sesssion.use_ cookies = 0;
                      You may be able to do it. If you have decided not to use cookies for maintain for handling sessions,
                      the system will be sending the session IDs through the URL (Using GET Method.) You can find
                      ?PHPSESSID=[Session ID]& in your address bar. But i dn't think it is a good idea. As you know each session is identified in the server using this ID, in the server. so if you are not able to pass the session_id from one scripts to another, they are supposed to be in different sessions. If something like that happens. It is supposed to be a bug in PHP, not a feature. And it doesnt happen. I have experimented it alot. Sometimes if your system is not sending the session id through URLs you can maintain different sessions. But in such a case you wont be able to maintain a proper session at all..

                      And dear Guys and Praveen,
                      why are you all not insisting to make all these posts on the forum ?
                      If we are using mails, whats the meaning of having a forum ?
                      And remember the forum is of no use if there are no posts ...
                      Also it would be of more easy to read and reply in there. It wont waste our email space, some new member will also be able to see all the previous discussions.

                      Raj
                      [www.araj.in]


                      ----- Original Message ----
                      From: Mahabaleshwar <mahihs2002@...>
                      To: phpKeralaUg@yahoogroups.com
                      Sent: Monday, 20 August, 2007 5:36:22 PM
                      Subject: Re: [phpKerala] Session is preserving across browser tabs or windows













                      Hi arun,



                      my need is I want unique sessions for each tabs/windows. Changes made

                      in one tab should not affect another tab.means different users should

                      be able to login through different tabs/windows. Currently what

                      happens is if you login in one tab and open a new tab/window and login

                      as a different user, the first tab login will change with second user

                      details.This only happens in firefox, opera not in IE.



                      For solving the above problem I changed configuration settings in

                      php.ini as



                      sesssion.use_ cookies = 0;



                      when I did that the session is not working properly as I mentioned in

                      the last mail.



                      PHP sessions are working perfectly. Only problem is it shares data

                      when we open in different tabs, that i dont want. I want each tabs to

                      be unique.



                      thanks & regards,

                      bhat

                      --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ ...>

                      wrote:

                      >

                      > Hi,

                      >

                      > Please check your first post. I answered for the first post, i.e.,

                      how to pass values between different browser tabs or pages.

                      >

                      > Now its becoming more confusing. I think if you can explain your

                      real need with a good example, i hope that we can give you a more

                      acceptable answer.

                      >

                      > regards,

                      >

                      > Arun Vasudevan

                      >

                      >

                      > Mahabaleshwar <mahihs2002@ ...> wrote:

                      No man,

                      >

                      > if communication is btween two pages then it works fine, no problem in

                      > that. but when there is intermediate page which is not loaded in to

                      > the browser and there we use header() function to redirect to third

                      > then in the third page new session will be started instead of

                      > continuing the existing session.

                      >

                      > the sample code is given below please check

                      >

                      > first.php

                      > <?session_start( );

                      >

                      > $_SESSION['var1' ] = rand(2,8);

                      >

                      > print("<html> <body><form name='frm1' method='post'

                      action='second. php'");

                      > print("<input type='submit' value='submit' >");

                      > print("</form> ");

                      > print("</body> </html>") ;

                      >

                      > ?>

                      >

                      > second.php

                      > <?session_start( );

                      > header("Location: third.php");

                      > ?>

                      >

                      > third.php

                      > <?session_start( );

                      > print($_SESSION[ 'var1']);

                      > ?>

                      >

                      > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ >

                      > wrote:

                      > >

                      > > Hi Friends,

                      > >

                      > > It worked for me fine. Make sure that register_globals in your

                      > php.ini is ON.

                      > >

                      > > Try the below codes. First create first.php file and then

                      > second.php. There content of the files are follows :

                      > >

                      > > first.php

                      > >

                      > > <?

                      > > session_start( );

                      > > $test = "Hello world";

                      > > session_register( test);

                      > > ?>

                      > >

                      > > second.php

                      > >

                      > > <?

                      > > session_start( );

                      > > echo $test;

                      > > ?>

                      > > Open browser and call first.php. Open a new page / browser window

                      > and open the second page. You should see "Hello World". Try it out and

                      > let us know it is working or not.

                      > >

                      > > regards,

                      > >

                      > > Arun Vasudevan

                      > >

                      > >

                      > > Mahabaleshwar <mahihs2002@ > wrote:

                      > Sorry guys....,

                      > >

                      > > it gives some unexpected results. if there is any in between pages

                      > > which is not loaded in to the browser then in each page it

                      starts new

                      > > session.

                      > >

                      > > need to do something else i think

                      > >

                      > > regards,

                      > > Bhat

                      > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@ > wrote:

                      > > >

                      > > > session.use_ cookies specifies whether the module will use

                      cookies to

                      > > store the session id on the client side

                      > > >

                      > > > I am still surprised to hear you are successful in handling

                      sessions

                      > > in tabs seperately :). May be I must do some more experiments to

                      > > confirm this.

                      > > >

                      > > > Best Regards

                      > > > Praveen.

                      > > >

                      > > > Mahabaleshwar <mahihs2002@ > wrote:

                      > > Ok

                      > > >

                      > > > I got one solution for this problem

                      > > >

                      > > > in php.ini make

                      > > > session.use_ cookies = 0

                      > > >

                      > > > the problem is using session cookies.if we disable it works fine

                      > > >

                      > > > plz tell me is there any problem by doing this?

                      > > >

                      > > > thanks for all

                      > > >

                      > > > regards,

                      > > > bhat

                      > > >

                      > > > --- In phpKeralaUg@ yahoogroups. com, "Mahabaleshwar" <mahihs2002@ >

                      > > > wrote:

                      > > > >

                      > > > > Hi praveen,

                      > > > >

                      > > > > Thank u for ur reply.

                      > > > > But in my local server it creates different session files

                      for each

                      > > > > tabs/windows. I checked all the configuration settings in

                      > php.ini file

                      > > > > but could not able to rectify.when I replaced local php.ini

                      > file with

                      > > > > the server file same problem happens. Then I reverted the local

                      > > > > php.ini file, the problem continued(I restarted apache each

                      > > time).Then

                      > > > > I rebooted local machine, now it again creates different

                      session

                      > > files.

                      > > > > So I confused why this happens

                      > > > >

                      > > > > regards,

                      > > > > bhat

                      > > > >

                      > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@ >

                      > wrote:

                      > > > > >

                      > > > > > Hi,

                      > > > > >

                      > > > > > Actually it is not a 'problem' but a feature of

                      browsers. Not

                      > > with

                      > > > > PHP, all the server side languages (asp.net, etc.) behave like

                      > this.

                      > > > > The whole browser instance is considered as a single session.

                      > > > > >

                      > > > > > If you really want to keep each tabs different, you may

                      > need to

                      > > > > avoid the usage of SESSION and find some tricks. One option

                      is use

                      > > > > database to handle your session vars.

                      > > > > >

                      > > > > > Best Regards

                      > > > > > Praveen.

                      > > > > >

                      > > > > > Mahabaleshwar <mahihs2002@ > wrote:

                      > > > > > Dear all,

                      > > > > >

                      > > > > > I have a problem in PHP session handling. when I open my

                      > website in

                      > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use

                      > 'Control+N' in IE

                      > > > > > 6.0 to open a new window, it is using the same session,

                      so the

                      > > another

                      > > > > > tab is just a copy of the previous tab. What i do in one will

                      > > affect

                      > > > > > the another and vice-versa. Even if i open Firefox again, it

                      > > will use

                      > > > > > the same session of the previous session. But that is not

                      what

                      > > I need

                      > > > > > mostly of time, specially when i want to copy information

                      > from one

                      > > > > > place to another in my web application.

                      > > > > >

                      > > > > > How to solve this problem, plz help me.

                      > > > > > Is there any configuration settings I have to do in

                      php/apache.

                      > > > > >

                      > > > > > regards,

                      > > > > > Bhat

                      > > > > >

                      > > > > >

                      > > > > >

                      > > > > >

                      > > > > >

                      > > > > >

                      > > > > > [Non-text portions of this message have been removed]

                      > > > > >

                      > > > >

                      > > >

                      > > >

                      > > >

                      > > >

                      > > >

                      > > >

                      > > > [Non-text portions of this message have been removed]

                      > > >

                      > >

                      > >

                      > >

                      > >

                      > >

                      > >

                      > > ------------ --------- --------- ---

                      > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s

                      > user panel and lay it on us.

                      > >

                      > > [Non-text portions of this message have been removed]

                      > >

                      >

                      >

                      >

                      >

                      >

                      >

                      > ------------ --------- --------- ---

                      > Luggage? GPS? Comic books?

                      > Check out fitting gifts for grads at Yahoo! Search.

                      >

                      > [Non-text portions of this message have been removed]

                      >














                      <!--

                      #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
                      #ygrp-mlmsg table {font-size:inherit;font:100%;}
                      #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
                      #ygrp-mlmsg pre, code {font:115% monospace;}
                      #ygrp-mlmsg * {line-height:1.22em;}
                      #ygrp-text{
                      font-family:Georgia;
                      }
                      #ygrp-text p{
                      margin:0 0 1em 0;}
                      #ygrp-tpmsgs{
                      font-family:Arial;
                      clear:both;}
                      #ygrp-vitnav{
                      padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                      #ygrp-vitnav a{
                      padding:0 1px;}
                      #ygrp-actbar{
                      clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
                      #ygrp-actbar .left{
                      float:left;white-space:nowrap;}
                      .bld{font-weight:bold;}
                      #ygrp-grft{
                      font-family:Verdana;font-size:77%;padding:15px 0;}
                      #ygrp-ft{
                      font-family:verdana;font-size:77%;border-top:1px solid #666;
                      padding:5px 0;
                      }
                      #ygrp-mlmsg #logo{
                      padding-bottom:10px;}

                      #ygrp-vital{
                      background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                      #ygrp-vital #vithd{
                      font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                      #ygrp-vital ul{
                      padding:0;margin:2px 0;}
                      #ygrp-vital ul li{
                      list-style-type:none;clear:both;border:1px solid #e0ecee;
                      }
                      #ygrp-vital ul li .ct{
                      font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                      #ygrp-vital ul li .cat{
                      font-weight:bold;}
                      #ygrp-vital a {
                      text-decoration:none;}

                      #ygrp-vital a:hover{
                      text-decoration:underline;}

                      #ygrp-sponsor #hd{
                      color:#999;font-size:77%;}
                      #ygrp-sponsor #ov{
                      padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                      #ygrp-sponsor #ov ul{
                      padding:0 0 0 8px;margin:0;}
                      #ygrp-sponsor #ov li{
                      list-style-type:square;padding:6px 0;font-size:77%;}
                      #ygrp-sponsor #ov li a{
                      text-decoration:none;font-size:130%;}
                      #ygrp-sponsor #nc {
                      background-color:#eee;margin-bottom:20px;padding:0 8px;}
                      #ygrp-sponsor .ad{
                      padding:8px 0;}
                      #ygrp-sponsor .ad #hd1{
                      font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                      #ygrp-sponsor .ad a{
                      text-decoration:none;}
                      #ygrp-sponsor .ad a:hover{
                      text-decoration:underline;}
                      #ygrp-sponsor .ad p{
                      margin:0;}
                      o {font-size:0;}
                      .MsoNormal {
                      margin:0 0 0 0;}
                      #ygrp-text tt{
                      font-size:120%;}
                      blockquote{margin:0 0 0 4px;}
                      .replbq {margin:4;}
                      -->








                      Once upon a time there was 1 GB storage in your inbox. To know the happy ending go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

                      [Non-text portions of this message have been removed]
                    • Mahabaleshwar
                      Dear Raj, Thank you very much for the reply and ur patience and spending time for writing in detail. Whatever you explained I understood and agree that in
                      Message 10 of 22 , Aug 23, 2007
                      • 0 Attachment
                        Dear Raj,

                        Thank you very much for the reply and ur patience and spending time
                        for writing in detail.

                        Whatever you explained I understood and agree that in normal cases
                        nobody will open more than one session at a time and should not be
                        allowed.But this is an extraordinary case. Because the site is of
                        Network marketing company and DSA's(companies Salespersons) of the
                        company, who are using the site, will login in one tab of firefox and
                        in another tab they will open the site again and try to join new
                        customer under them (Like sponsors).At that time existing login and
                        new customers sessions conflicts and creates problem.

                        As you said i also not interested to passing session id's through
                        URLs, since that is not secure and not practical

                        As everybody said we cannot handle this problem since it is browser
                        depended.May be this is a drawback of firefox/opera etc.

                        regards,
                        Bhat



                        --- In phpKeralaUg@yahoogroups.com, ArunRaj R <raj47i@...> wrote:
                        >
                        > dear friend,
                        >
                        > No such requirements are usually expected. Since only a user is
                        expected to use a system for browsing at a time. and so he should be
                        maintaining a single session at time.
                        >
                        > In this case i assume you need to maintain two sessions for testing
                        purposes. For this the easiest and effective solution is use more than
                        one browsers. Say IE, Firefox, Opera Using these three you can
                        maintain 3 different sessions in a single system.
                        >
                        > Still if you wanna go ahead with sesssion.use_ cookies = 0;
                        > You may be able to do it. If you have decided not to use cookies for
                        maintain for handling sessions,
                        > the system will be sending the session IDs through the URL (Using
                        GET Method.) You can find
                        > ?PHPSESSID=[Session ID]& in your address bar. But i dn't think it is
                        a good idea. As you know each session is identified in the server
                        using this ID, in the server. so if you are not able to pass the
                        session_id from one scripts to another, they are supposed to be in
                        different sessions. If something like that happens. It is supposed to
                        be a bug in PHP, not a feature. And it doesnt happen. I have
                        experimented it alot. Sometimes if your system is not sending the
                        session id through URLs you can maintain different sessions. But in
                        such a case you wont be able to maintain a proper session at all..
                        >
                        > And dear Guys and Praveen,
                        > why are you all not insisting to make all these posts on the forum ?
                        > If we are using mails, whats the meaning of having a forum ?
                        > And remember the forum is of no use if there are no posts ...
                        > Also it would be of more easy to read and reply in there. It wont
                        waste our email space, some new member will also be able to see all
                        the previous discussions.
                        >
                        > Raj
                        > [www.araj.in]
                        >
                        >
                        > ----- Original Message ----
                        > From: Mahabaleshwar <mahihs2002@...>
                        > To: phpKeralaUg@yahoogroups.com
                        > Sent: Monday, 20 August, 2007 5:36:22 PM
                        > Subject: Re: [phpKerala] Session is preserving across browser tabs
                        or windows
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        > Hi arun,
                        >
                        >
                        >
                        > my need is I want unique sessions for each tabs/windows. Changes made
                        >
                        > in one tab should not affect another tab.means different users should
                        >
                        > be able to login through different tabs/windows. Currently what
                        >
                        > happens is if you login in one tab and open a new tab/window and login
                        >
                        > as a different user, the first tab login will change with second user
                        >
                        > details.This only happens in firefox, opera not in IE.
                        >
                        >
                        >
                        > For solving the above problem I changed configuration settings in
                        >
                        > php.ini as
                        >
                        >
                        >
                        > sesssion.use_ cookies = 0;
                        >
                        >
                        >
                        > when I did that the session is not working properly as I mentioned in
                        >
                        > the last mail.
                        >
                        >
                        >
                        > PHP sessions are working perfectly. Only problem is it shares data
                        >
                        > when we open in different tabs, that i dont want. I want each tabs to
                        >
                        > be unique.
                        >
                        >
                        >
                        > thanks & regards,
                        >
                        > bhat
                        >
                        > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ ...>
                        >
                        > wrote:
                        >
                        > >
                        >
                        > > Hi,
                        >
                        > >
                        >
                        > > Please check your first post. I answered for the first post, i.e.,
                        >
                        > how to pass values between different browser tabs or pages.
                        >
                        > >
                        >
                        > > Now its becoming more confusing. I think if you can explain your
                        >
                        > real need with a good example, i hope that we can give you a more
                        >
                        > acceptable answer.
                        >
                        > >
                        >
                        > > regards,
                        >
                        > >
                        >
                        > > Arun Vasudevan
                        >
                        > >
                        >
                        > >
                        >
                        > > Mahabaleshwar <mahihs2002@ ...> wrote:
                        >
                        > No man,
                        >
                        > >
                        >
                        > > if communication is btween two pages then it works fine, no
                        problem in
                        >
                        > > that. but when there is intermediate page which is not loaded in to
                        >
                        > > the browser and there we use header() function to redirect to third
                        >
                        > > then in the third page new session will be started instead of
                        >
                        > > continuing the existing session.
                        >
                        > >
                        >
                        > > the sample code is given below please check
                        >
                        > >
                        >
                        > > first.php
                        >
                        > > <?session_start( );
                        >
                        > >
                        >
                        > > $_SESSION['var1' ] = rand(2,8);
                        >
                        > >
                        >
                        > > print("<html> <body><form name='frm1' method='post'
                        >
                        > action='second. php'");
                        >
                        > > print("<input type='submit' value='submit' >");
                        >
                        > > print("</form> ");
                        >
                        > > print("</body> </html>") ;
                        >
                        > >
                        >
                        > > ?>
                        >
                        > >
                        >
                        > > second.php
                        >
                        > > <?session_start( );
                        >
                        > > header("Location: third.php");
                        >
                        > > ?>
                        >
                        > >
                        >
                        > > third.php
                        >
                        > > <?session_start( );
                        >
                        > > print($_SESSION[ 'var1']);
                        >
                        > > ?>
                        >
                        > >
                        >
                        > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ >
                        >
                        > > wrote:
                        >
                        > > >
                        >
                        > > > Hi Friends,
                        >
                        > > >
                        >
                        > > > It worked for me fine. Make sure that register_globals in your
                        >
                        > > php.ini is ON.
                        >
                        > > >
                        >
                        > > > Try the below codes. First create first.php file and then
                        >
                        > > second.php. There content of the files are follows :
                        >
                        > > >
                        >
                        > > > first.php
                        >
                        > > >
                        >
                        > > > <?
                        >
                        > > > session_start( );
                        >
                        > > > $test = "Hello world";
                        >
                        > > > session_register( test);
                        >
                        > > > ?>
                        >
                        > > >
                        >
                        > > > second.php
                        >
                        > > >
                        >
                        > > > <?
                        >
                        > > > session_start( );
                        >
                        > > > echo $test;
                        >
                        > > > ?>
                        >
                        > > > Open browser and call first.php. Open a new page / browser window
                        >
                        > > and open the second page. You should see "Hello World". Try it
                        out and
                        >
                        > > let us know it is working or not.
                        >
                        > > >
                        >
                        > > > regards,
                        >
                        > > >
                        >
                        > > > Arun Vasudevan
                        >
                        > > >
                        >
                        > > >
                        >
                        > > > Mahabaleshwar <mahihs2002@ > wrote:
                        >
                        > > Sorry guys....,
                        >
                        > > >
                        >
                        > > > it gives some unexpected results. if there is any in between pages
                        >
                        > > > which is not loaded in to the browser then in each page it
                        >
                        > starts new
                        >
                        > > > session.
                        >
                        > > >
                        >
                        > > > need to do something else i think
                        >
                        > > >
                        >
                        > > > regards,
                        >
                        > > > Bhat
                        >
                        > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@
                        > wrote:
                        >
                        > > > >
                        >
                        > > > > session.use_ cookies specifies whether the module will use
                        >
                        > cookies to
                        >
                        > > > store the session id on the client side
                        >
                        > > > >
                        >
                        > > > > I am still surprised to hear you are successful in handling
                        >
                        > sessions
                        >
                        > > > in tabs seperately :). May be I must do some more experiments to
                        >
                        > > > confirm this.
                        >
                        > > > >
                        >
                        > > > > Best Regards
                        >
                        > > > > Praveen.
                        >
                        > > > >
                        >
                        > > > > Mahabaleshwar <mahihs2002@ > wrote:

                        >
                        > > > Ok
                        >
                        > > > >
                        >
                        > > > > I got one solution for this problem
                        >
                        > > > >
                        >
                        > > > > in php.ini make
                        >
                        > > > > session.use_ cookies = 0
                        >
                        > > > >
                        >
                        > > > > the problem is using session cookies.if we disable it works
                        fine
                        >
                        > > > >
                        >
                        > > > > plz tell me is there any problem by doing this?
                        >
                        > > > >
                        >
                        > > > > thanks for all
                        >
                        > > > >
                        >
                        > > > > regards,
                        >
                        > > > > bhat
                        >
                        > > > >
                        >
                        > > > > --- In phpKeralaUg@ yahoogroups. com, "Mahabaleshwar"
                        <mahihs2002@ >
                        >
                        > > > > wrote:
                        >
                        > > > > >
                        >
                        > > > > > Hi praveen,
                        >
                        > > > > >
                        >
                        > > > > > Thank u for ur reply.
                        >
                        > > > > > But in my local server it creates different session files
                        >
                        > for each
                        >
                        > > > > > tabs/windows. I checked all the configuration settings in
                        >
                        > > php.ini file
                        >
                        > > > > > but could not able to rectify.when I replaced local php.ini
                        >
                        > > file with
                        >
                        > > > > > the server file same problem happens. Then I reverted the
                        local
                        >
                        > > > > > php.ini file, the problem continued(I restarted apache each
                        >
                        > > > time).Then
                        >
                        > > > > > I rebooted local machine, now it again creates different
                        >
                        > session
                        >
                        > > > files.
                        >
                        > > > > > So I confused why this happens
                        >
                        > > > > >
                        >
                        > > > > > regards,
                        >
                        > > > > > bhat
                        >
                        > > > > >
                        >
                        > > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V
                        <ninethsense@ >
                        >
                        > > wrote:
                        >
                        > > > > > >
                        >
                        > > > > > > Hi,
                        >
                        > > > > > >
                        >
                        > > > > > > Actually it is not a 'problem' but a feature of
                        >
                        > browsers. Not
                        >
                        > > > with
                        >
                        > > > > > PHP, all the server side languages (asp.net, etc.) behave
                        like
                        >
                        > > this.
                        >
                        > > > > > The whole browser instance is considered as a single session.
                        >
                        > > > > > >
                        >
                        > > > > > > If you really want to keep each tabs different, you may
                        >
                        > > need to
                        >
                        > > > > > avoid the usage of SESSION and find some tricks. One option
                        >
                        > is use
                        >
                        > > > > > database to handle your session vars.
                        >
                        > > > > > >
                        >
                        > > > > > > Best Regards
                        >
                        > > > > > > Praveen.
                        >
                        > > > > > >
                        >
                        > > > > > > Mahabaleshwar <mahihs2002@ > wrote:
                        >
                        > > > > > > Dear all,
                        >
                        > > > > > >
                        >
                        > > > > > > I have a problem in PHP session handling. when I open my
                        >
                        > > website in
                        >
                        > > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
                        >
                        > > 'Control+N' in IE
                        >
                        > > > > > > 6.0 to open a new window, it is using the same session,
                        >
                        > so the
                        >
                        > > > another
                        >
                        > > > > > > tab is just a copy of the previous tab. What i do in
                        one will
                        >
                        > > > affect
                        >
                        > > > > > > the another and vice-versa. Even if i open Firefox
                        again, it
                        >
                        > > > will use
                        >
                        > > > > > > the same session of the previous session. But that is not
                        >
                        > what
                        >
                        > > > I need
                        >
                        > > > > > > mostly of time, specially when i want to copy information
                        >
                        > > from one
                        >
                        > > > > > > place to another in my web application.
                        >
                        > > > > > >
                        >
                        > > > > > > How to solve this problem, plz help me.
                        >
                        > > > > > > Is there any configuration settings I have to do in
                        >
                        > php/apache.
                        >
                        > > > > > >
                        >
                        > > > > > > regards,
                        >
                        > > > > > > Bhat
                        >
                        > > > > > >
                        >
                        > > > > > >
                        >
                        > > > > > >
                        >
                        > > > > > >
                        >
                        > > > > > >
                        >
                        > > > > > >
                        >
                        > > > > > > [Non-text portions of this message have been removed]
                        >
                        > > > > > >
                        >
                        > > > > >
                        >
                        > > > >
                        >
                        > > > >
                        >
                        > > > >
                        >
                        > > > >
                        >
                        > > > >
                        >
                        > > > >
                        >
                        > > > > [Non-text portions of this message have been removed]
                        >
                        > > > >
                        >
                        > > >
                        >
                        > > >
                        >
                        > > >
                        >
                        > > >
                        >
                        > > >
                        >
                        > > >
                        >
                        > > > ------------ --------- --------- ---
                        >
                        > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
                        >
                        > > user panel and lay it on us.
                        >
                        > > >
                        >
                        > > > [Non-text portions of this message have been removed]
                        >
                        > > >
                        >
                        > >
                        >
                        > >
                        >
                        > >
                        >
                        > >
                        >
                        > >
                        >
                        > >
                        >
                        > > ------------ --------- --------- ---
                        >
                        > > Luggage? GPS? Comic books?
                        >
                        > > Check out fitting gifts for grads at Yahoo! Search.
                        >
                        > >
                        >
                        > > [Non-text portions of this message have been removed]
                        >
                        > >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        > <!--
                        >
                        > #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean,
                        sans-serif;}
                        > #ygrp-mlmsg table {font-size:inherit;font:100%;}
                        > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,
                        clean, sans-serif;}
                        > #ygrp-mlmsg pre, code {font:115% monospace;}
                        > #ygrp-mlmsg * {line-height:1.22em;}
                        > #ygrp-text{
                        > font-family:Georgia;
                        > }
                        > #ygrp-text p{
                        > margin:0 0 1em 0;}
                        > #ygrp-tpmsgs{
                        > font-family:Arial;
                        > clear:both;}
                        > #ygrp-vitnav{
                        > padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                        > #ygrp-vitnav a{
                        > padding:0 1px;}
                        > #ygrp-actbar{
                        > clear:both;margin:25px
                        0;white-space:nowrap;color:#666;text-align:right;}
                        > #ygrp-actbar .left{
                        > float:left;white-space:nowrap;}
                        > .bld{font-weight:bold;}
                        > #ygrp-grft{
                        > font-family:Verdana;font-size:77%;padding:15px 0;}
                        > #ygrp-ft{
                        > font-family:verdana;font-size:77%;border-top:1px solid #666;
                        > padding:5px 0;
                        > }
                        > #ygrp-mlmsg #logo{
                        > padding-bottom:10px;}
                        >
                        > #ygrp-vital{
                        > background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                        > #ygrp-vital #vithd{
                        >
                        font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                        > #ygrp-vital ul{
                        > padding:0;margin:2px 0;}
                        > #ygrp-vital ul li{
                        > list-style-type:none;clear:both;border:1px solid #e0ecee;
                        > }
                        > #ygrp-vital ul li .ct{
                        >
                        font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                        > #ygrp-vital ul li .cat{
                        > font-weight:bold;}
                        > #ygrp-vital a {
                        > text-decoration:none;}
                        >
                        > #ygrp-vital a:hover{
                        > text-decoration:underline;}
                        >
                        > #ygrp-sponsor #hd{
                        > color:#999;font-size:77%;}
                        > #ygrp-sponsor #ov{
                        > padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                        > #ygrp-sponsor #ov ul{
                        > padding:0 0 0 8px;margin:0;}
                        > #ygrp-sponsor #ov li{
                        > list-style-type:square;padding:6px 0;font-size:77%;}
                        > #ygrp-sponsor #ov li a{
                        > text-decoration:none;font-size:130%;}
                        > #ygrp-sponsor #nc {
                        > background-color:#eee;margin-bottom:20px;padding:0 8px;}
                        > #ygrp-sponsor .ad{
                        > padding:8px 0;}
                        > #ygrp-sponsor .ad #hd1{
                        >
                        font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                        > #ygrp-sponsor .ad a{
                        > text-decoration:none;}
                        > #ygrp-sponsor .ad a:hover{
                        > text-decoration:underline;}
                        > #ygrp-sponsor .ad p{
                        > margin:0;}
                        > o {font-size:0;}
                        > .MsoNormal {
                        > margin:0 0 0 0;}
                        > #ygrp-text tt{
                        > font-size:120%;}
                        > blockquote{margin:0 0 0 4px;}
                        > .replbq {margin:4;}
                        > -->
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        >
                        > Once upon a time there was 1 GB storage in your inbox. To know
                        the happy ending go to
                        http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
                        >
                        > [Non-text portions of this message have been removed]
                        >
                      • ArunRaj R
                        All i said was about maintaining multiple sessions (By default session handling framework ) on the same server. But you can surely solve your problem. PHP
                        Message 11 of 22 , Aug 23, 2007
                        • 0 Attachment
                          All i said was about maintaining multiple sessions (By default session handling framework ) on the same server. But you can surely solve your problem. PHP session handling in not that limited as we normally expect. you can override the default session handling by defining custom methods in php scripts. and all that are quite easy too. Or alternatively the signing in and registration process are different so treat them as different and your problem will get solved quite easily. i meant keep the logged in user's information in say $_SESSION['user'] = "username" and register the new user irrespective of the $_SESSION['user'] value. Then the problem will be that you can't sign in two different users at the same time. For that you must have to override the session handling functions and keep track of the client IP, session ID, your own assigned session id(recommend to pass it via the URL - even it alone can solve your problem). I am sure that some one else in
                          phpkerala will be able to provide you with more help. If you cant find much please give me a post at www.araj.in/board/ since wont check the this group mails more than once a month(I am a bit busy with current projects and maintanence of my website & forum at www.araj.in). The same was the reason for not replying to your posts this long.

                          Please go here to find out how to make use of different session handling methods.

                          http://hostprogressive.com/support/php_5_docs/ref.session.html

                          http://in.php.net/session


                          session_cache_expire — Return current cache expiresession_cache_limiter — Get and/or set the current cache limitersession_commit — Alias of session_write_close()session_decode — Decodes session data from a stringsession_destroy — Destroys all data registered to a sessionsession_encode — Encodes the current session data as a stringsession_get_cookie_params — Get the session cookie parameterssession_id — Get and/or set the current session idsession_is_registered — Find out whether a global variable is registered in a sessionsession_module_name — Get and/or set the current session modulesession_name — Get and/or set the current session namesession_regenerate_id —
                          Update the current session id with a newly generated one
                          session_register — Register one or more global variables with the current sessionsession_save_path — Get and/or set the current session save pathsession_set_cookie_params — Set the session cookie parameterssession_set_save_handler — Sets user-level session storage functionssession_start — Initialize session datasession_unregister — Unregister a global variable from the current sessionsession_unset — Free all session variablessession_write_close — Write session data and end session
                          have a nice day..

                          Raj
                          [www.araj.in]





                          ----- Original Message ----
                          From: Mahabaleshwar <mahihs2002@...>
                          To: phpKeralaUg@yahoogroups.com
                          Sent: Thursday, 23 August, 2007 5:47:31 PM
                          Subject: Re: [phpKerala] Session is preserving across browser tabs or windows













                          Dear Raj,



                          Thank you very much for the reply and ur patience and spending time

                          for writing in detail.



                          Whatever you explained I understood and agree that in normal cases

                          nobody will open more than one session at a time and should not be

                          allowed.But this is an extraordinary case. Because the site is of

                          Network marketing company and DSA's(companies Salespersons) of the

                          company, who are using the site, will login in one tab of firefox and

                          in another tab they will open the site again and try to join new

                          customer under them (Like sponsors).At that time existing login and

                          new customers sessions conflicts and creates problem.



                          As you said i also not interested to passing session id's through

                          URLs, since that is not secure and not practical



                          As everybody said we cannot handle this problem since it is browser

                          depended.May be this is a drawback of firefox/opera etc.



                          regards,

                          Bhat



                          --- In phpKeralaUg@ yahoogroups. com, ArunRaj R <raj47i@...> wrote:

                          >

                          > dear friend,

                          >

                          > No such requirements are usually expected. Since only a user is

                          expected to use a system for browsing at a time. and so he should be

                          maintaining a single session at time.

                          >

                          > In this case i assume you need to maintain two sessions for testing

                          purposes. For this the easiest and effective solution is use more than

                          one browsers. Say IE, Firefox, Opera Using these three you can

                          maintain 3 different sessions in a single system.

                          >

                          > Still if you wanna go ahead with sesssion.use_ cookies = 0;

                          > You may be able to do it. If you have decided not to use cookies for

                          maintain for handling sessions,

                          > the system will be sending the session IDs through the URL (Using

                          GET Method.) You can find

                          > ?PHPSESSID=[ Session ID]& in your address bar. But i dn't think it is

                          a good idea. As you know each session is identified in the server

                          using this ID, in the server. so if you are not able to pass the

                          session_id from one scripts to another, they are supposed to be in

                          different sessions. If something like that happens. It is supposed to

                          be a bug in PHP, not a feature. And it doesnt happen. I have

                          experimented it alot. Sometimes if your system is not sending the

                          session id through URLs you can maintain different sessions. But in

                          such a case you wont be able to maintain a proper session at all..

                          >

                          > And dear Guys and Praveen,

                          > why are you all not insisting to make all these posts on the forum ?

                          > If we are using mails, whats the meaning of having a forum ?

                          > And remember the forum is of no use if there are no posts ...

                          > Also it would be of more easy to read and reply in there. It wont

                          waste our email space, some new member will also be able to see all

                          the previous discussions.

                          >

                          > Raj

                          > [www.araj.in]

                          >

                          >

                          > ----- Original Message ----

                          > From: Mahabaleshwar <mahihs2002@ ...>

                          > To: phpKeralaUg@ yahoogroups. com

                          > Sent: Monday, 20 August, 2007 5:36:22 PM

                          > Subject: Re: [phpKerala] Session is preserving across browser tabs

                          or windows

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          > Hi arun,

                          >

                          >

                          >

                          > my need is I want unique sessions for each tabs/windows. Changes made

                          >

                          > in one tab should not affect another tab.means different users should

                          >

                          > be able to login through different tabs/windows. Currently what

                          >

                          > happens is if you login in one tab and open a new tab/window and login

                          >

                          > as a different user, the first tab login will change with second user

                          >

                          > details.This only happens in firefox, opera not in IE.

                          >

                          >

                          >

                          > For solving the above problem I changed configuration settings in

                          >

                          > php.ini as

                          >

                          >

                          >

                          > sesssion.use_ cookies = 0;

                          >

                          >

                          >

                          > when I did that the session is not working properly as I mentioned in

                          >

                          > the last mail.

                          >

                          >

                          >

                          > PHP sessions are working perfectly. Only problem is it shares data

                          >

                          > when we open in different tabs, that i dont want. I want each tabs to

                          >

                          > be unique.

                          >

                          >

                          >

                          > thanks & regards,

                          >

                          > bhat

                          >

                          > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ ...>

                          >

                          > wrote:

                          >

                          > >

                          >

                          > > Hi,

                          >

                          > >

                          >

                          > > Please check your first post. I answered for the first post, i.e.,

                          >

                          > how to pass values between different browser tabs or pages.

                          >

                          > >

                          >

                          > > Now its becoming more confusing. I think if you can explain your

                          >

                          > real need with a good example, i hope that we can give you a more

                          >

                          > acceptable answer.

                          >

                          > >

                          >

                          > > regards,

                          >

                          > >

                          >

                          > > Arun Vasudevan

                          >

                          > >

                          >

                          > >

                          >

                          > > Mahabaleshwar <mahihs2002@ ...> wrote:

                          >

                          > No man,

                          >

                          > >

                          >

                          > > if communication is btween two pages then it works fine, no

                          problem in

                          >

                          > > that. but when there is intermediate page which is not loaded in to

                          >

                          > > the browser and there we use header() function to redirect to third

                          >

                          > > then in the third page new session will be started instead of

                          >

                          > > continuing the existing session.

                          >

                          > >

                          >

                          > > the sample code is given below please check

                          >

                          > >

                          >

                          > > first.php

                          >

                          > > <?session_start( );

                          >

                          > >

                          >

                          > > $_SESSION['var1' ] = rand(2,8);

                          >

                          > >

                          >

                          > > print("<html> <body><form name='frm1' method='post'

                          >

                          > action='second. php'");

                          >

                          > > print("<input type='submit' value='submit' >");

                          >

                          > > print("</form> ");

                          >

                          > > print("</body> </html>") ;

                          >

                          > >

                          >

                          > > ?>

                          >

                          > >

                          >

                          > > second.php

                          >

                          > > <?session_start( );

                          >

                          > > header("Location: third.php");

                          >

                          > > ?>

                          >

                          > >

                          >

                          > > third.php

                          >

                          > > <?session_start( );

                          >

                          > > print($_SESSION[ 'var1']);

                          >

                          > > ?>

                          >

                          > >

                          >

                          > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@ >

                          >

                          > > wrote:

                          >

                          > > >

                          >

                          > > > Hi Friends,

                          >

                          > > >

                          >

                          > > > It worked for me fine. Make sure that register_globals in your

                          >

                          > > php.ini is ON.

                          >

                          > > >

                          >

                          > > > Try the below codes. First create first.php file and then

                          >

                          > > second.php. There content of the files are follows :

                          >

                          > > >

                          >

                          > > > first.php

                          >

                          > > >

                          >

                          > > > <?

                          >

                          > > > session_start( );

                          >

                          > > > $test = "Hello world";

                          >

                          > > > session_register( test);

                          >

                          > > > ?>

                          >

                          > > >

                          >

                          > > > second.php

                          >

                          > > >

                          >

                          > > > <?

                          >

                          > > > session_start( );

                          >

                          > > > echo $test;

                          >

                          > > > ?>

                          >

                          > > > Open browser and call first.php. Open a new page / browser window

                          >

                          > > and open the second page. You should see "Hello World". Try it

                          out and

                          >

                          > > let us know it is working or not.

                          >

                          > > >

                          >

                          > > > regards,

                          >

                          > > >

                          >

                          > > > Arun Vasudevan

                          >

                          > > >

                          >

                          > > >

                          >

                          > > > Mahabaleshwar <mahihs2002@ > wrote:

                          >

                          > > Sorry guys....,

                          >

                          > > >

                          >

                          > > > it gives some unexpected results. if there is any in between pages

                          >

                          > > > which is not loaded in to the browser then in each page it

                          >

                          > starts new

                          >

                          > > > session.

                          >

                          > > >

                          >

                          > > > need to do something else i think

                          >

                          > > >

                          >

                          > > > regards,

                          >

                          > > > Bhat

                          >

                          > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@

                          > wrote:

                          >

                          > > > >

                          >

                          > > > > session.use_ cookies specifies whether the module will use

                          >

                          > cookies to

                          >

                          > > > store the session id on the client side

                          >

                          > > > >

                          >

                          > > > > I am still surprised to hear you are successful in handling

                          >

                          > sessions

                          >

                          > > > in tabs seperately :). May be I must do some more experiments to

                          >

                          > > > confirm this.

                          >

                          > > > >

                          >

                          > > > > Best Regards

                          >

                          > > > > Praveen.

                          >

                          > > > >

                          >

                          > > > > Mahabaleshwar <mahihs2002@ > wrote:



                          >

                          > > > Ok

                          >

                          > > > >

                          >

                          > > > > I got one solution for this problem

                          >

                          > > > >

                          >

                          > > > > in php.ini make

                          >

                          > > > > session.use_ cookies = 0

                          >

                          > > > >

                          >

                          > > > > the problem is using session cookies.if we disable it works

                          fine

                          >

                          > > > >

                          >

                          > > > > plz tell me is there any problem by doing this?

                          >

                          > > > >

                          >

                          > > > > thanks for all

                          >

                          > > > >

                          >

                          > > > > regards,

                          >

                          > > > > bhat

                          >

                          > > > >

                          >

                          > > > > --- In phpKeralaUg@ yahoogroups. com, "Mahabaleshwar"

                          <mahihs2002@ >

                          >

                          > > > > wrote:

                          >

                          > > > > >

                          >

                          > > > > > Hi praveen,

                          >

                          > > > > >

                          >

                          > > > > > Thank u for ur reply.

                          >

                          > > > > > But in my local server it creates different session files

                          >

                          > for each

                          >

                          > > > > > tabs/windows. I checked all the configuration settings in

                          >

                          > > php.ini file

                          >

                          > > > > > but could not able to rectify.when I replaced local php.ini

                          >

                          > > file with

                          >

                          > > > > > the server file same problem happens. Then I reverted the

                          local

                          >

                          > > > > > php.ini file, the problem continued(I restarted apache each

                          >

                          > > > time).Then

                          >

                          > > > > > I rebooted local machine, now it again creates different

                          >

                          > session

                          >

                          > > > files.

                          >

                          > > > > > So I confused why this happens

                          >

                          > > > > >

                          >

                          > > > > > regards,

                          >

                          > > > > > bhat

                          >

                          > > > > >

                          >

                          > > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V

                          <ninethsense@ >

                          >

                          > > wrote:

                          >

                          > > > > > >

                          >

                          > > > > > > Hi,

                          >

                          > > > > > >

                          >

                          > > > > > > Actually it is not a 'problem' but a feature of

                          >

                          > browsers. Not

                          >

                          > > > with

                          >

                          > > > > > PHP, all the server side languages (asp.net, etc.) behave

                          like

                          >

                          > > this.

                          >

                          > > > > > The whole browser instance is considered as a single session.

                          >

                          > > > > > >

                          >

                          > > > > > > If you really want to keep each tabs different, you may

                          >

                          > > need to

                          >

                          > > > > > avoid the usage of SESSION and find some tricks. One option

                          >

                          > is use

                          >

                          > > > > > database to handle your session vars.

                          >

                          > > > > > >

                          >

                          > > > > > > Best Regards

                          >

                          > > > > > > Praveen.

                          >

                          > > > > > >

                          >

                          > > > > > > Mahabaleshwar <mahihs2002@ > wrote:

                          >

                          > > > > > > Dear all,

                          >

                          > > > > > >

                          >

                          > > > > > > I have a problem in PHP session handling. when I open my

                          >

                          > > website in

                          >

                          > > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use

                          >

                          > > 'Control+N' in IE

                          >

                          > > > > > > 6.0 to open a new window, it is using the same session,

                          >

                          > so the

                          >

                          > > > another

                          >

                          > > > > > > tab is just a copy of the previous tab. What i do in

                          one will

                          >

                          > > > affect

                          >

                          > > > > > > the another and vice-versa. Even if i open Firefox

                          again, it

                          >

                          > > > will use

                          >

                          > > > > > > the same session of the previous session. But that is not

                          >

                          > what

                          >

                          > > > I need

                          >

                          > > > > > > mostly of time, specially when i want to copy information

                          >

                          > > from one

                          >

                          > > > > > > place to another in my web application.

                          >

                          > > > > > >

                          >

                          > > > > > > How to solve this problem, plz help me.

                          >

                          > > > > > > Is there any configuration settings I have to do in

                          >

                          > php/apache.

                          >

                          > > > > > >

                          >

                          > > > > > > regards,

                          >

                          > > > > > > Bhat

                          >

                          > > > > > >

                          >

                          > > > > > >

                          >

                          > > > > > >

                          >

                          > > > > > >

                          >

                          > > > > > >

                          >

                          > > > > > >

                          >

                          > > > > > > [Non-text portions of this message have been removed]

                          >

                          > > > > > >

                          >

                          > > > > >

                          >

                          > > > >

                          >

                          > > > >

                          >

                          > > > >

                          >

                          > > > >

                          >

                          > > > >

                          >

                          > > > >

                          >

                          > > > > [Non-text portions of this message have been removed]

                          >

                          > > > >

                          >

                          > > >

                          >

                          > > >

                          >

                          > > >

                          >

                          > > >

                          >

                          > > >

                          >

                          > > >

                          >

                          > > > ------------ --------- --------- ---

                          >

                          > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s

                          >

                          > > user panel and lay it on us.

                          >

                          > > >

                          >

                          > > > [Non-text portions of this message have been removed]

                          >

                          > > >

                          >

                          > >

                          >

                          > >

                          >

                          > >

                          >

                          > >

                          >

                          > >

                          >

                          > >

                          >

                          > > ------------ --------- --------- ---

                          >

                          > > Luggage? GPS? Comic books?

                          >

                          > > Check out fitting gifts for grads at Yahoo! Search.

                          >

                          > >

                          >

                          > > [Non-text portions of this message have been removed]

                          >

                          > >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          > <!--

                          >

                          > #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean,

                          sans-serif;}

                          > #ygrp-mlmsg table {font-size:inherit; font:100% ;}

                          > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,

                          clean, sans-serif;}

                          > #ygrp-mlmsg pre, code {font:115% monospace;}

                          > #ygrp-mlmsg * {line-height: 1.22em;}

                          > #ygrp-text{

                          > font-family: Georgia;

                          > }

                          > #ygrp-text p{

                          > margin:0 0 1em 0;}

                          > #ygrp-tpmsgs{

                          > font-family: Arial;

                          > clear:both;}

                          > #ygrp-vitnav{

                          > padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;}

                          > #ygrp-vitnav a{

                          > padding:0 1px;}

                          > #ygrp-actbar{

                          > clear:both;margin: 25px

                          0;white-space: nowrap;color: #666;text- align:right; }

                          > #ygrp-actbar .left{

                          > float:left;white- space:nowrap; }

                          > .bld{font-weight: bold;}

                          > #ygrp-grft{

                          > font-family: Verdana;font- size:77%; padding:15px 0;}

                          > #ygrp-ft{

                          > font-family: verdana;font- size:77%; border-top: 1px solid #666;

                          > padding:5px 0;

                          > }

                          > #ygrp-mlmsg #logo{

                          > padding-bottom: 10px;}

                          >

                          > #ygrp-vital{

                          > background-color: #e0ecee;margin- bottom:20px; padding:2px 0 8px 8px;}

                          > #ygrp-vital #vithd{

                          >

                          font-size:77% ;font-family: Verdana;font- weight:bold; color:#333; text-transform: uppercase; }

                          > #ygrp-vital ul{

                          > padding:0;margin: 2px 0;}

                          > #ygrp-vital ul li{

                          > list-style-type: none;clear: both;border: 1px solid #e0ecee;

                          > }

                          > #ygrp-vital ul li .ct{

                          >

                          font-weight: bold;color: #ff7900;float: right;width: 2em;text- align:right; padding-right: .5em;}

                          > #ygrp-vital ul li .cat{

                          > font-weight: bold;}

                          > #ygrp-vital a {

                          > text-decoration: none;}

                          >

                          > #ygrp-vital a:hover{

                          > text-decoration: underline; }

                          >

                          > #ygrp-sponsor #hd{

                          > color:#999;font- size:77%; }

                          > #ygrp-sponsor #ov{

                          > padding:6px 13px;background- color:#e0ecee; margin-bottom: 20px;}

                          > #ygrp-sponsor #ov ul{

                          > padding:0 0 0 8px;margin:0; }

                          > #ygrp-sponsor #ov li{

                          > list-style-type: square;padding: 6px 0;font-size: 77%;}

                          > #ygrp-sponsor #ov li a{

                          > text-decoration: none;font- size:130% ;}

                          > #ygrp-sponsor #nc {

                          > background-color: #eee;margin- bottom:20px; padding:0 8px;}

                          > #ygrp-sponsor .ad{

                          > padding:8px 0;}

                          > #ygrp-sponsor .ad #hd1{

                          >

                          font-family: Arial;font- weight:bold; color:#628c2a; font-size: 100%;line- height:122% ;}

                          > #ygrp-sponsor .ad a{

                          > text-decoration: none;}

                          > #ygrp-sponsor .ad a:hover{

                          > text-decoration: underline; }

                          > #ygrp-sponsor .ad p{

                          > margin:0;}

                          > o {font-size:0; }

                          > .MsoNormal {

                          > margin:0 0 0 0;}

                          > #ygrp-text tt{

                          > font-size:120% ;}

                          > blockquote{margin: 0 0 0 4px;}

                          > .replbq {margin:4;}

                          > -->

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          >

                          > Once upon a time there was 1 GB storage in your inbox. To know

                          the happy ending go to

                          http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html

                          >

                          > [Non-text portions of this message have been removed]

                          >














                          <!--

                          #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
                          #ygrp-mlmsg table {font-size:inherit;font:100%;}
                          #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
                          #ygrp-mlmsg pre, code {font:115% monospace;}
                          #ygrp-mlmsg * {line-height:1.22em;}
                          #ygrp-text{
                          font-family:Georgia;
                          }
                          #ygrp-text p{
                          margin:0 0 1em 0;}
                          #ygrp-tpmsgs{
                          font-family:Arial;
                          clear:both;}
                          #ygrp-vitnav{
                          padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                          #ygrp-vitnav a{
                          padding:0 1px;}
                          #ygrp-actbar{
                          clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
                          #ygrp-actbar .left{
                          float:left;white-space:nowrap;}
                          .bld{font-weight:bold;}
                          #ygrp-grft{
                          font-family:Verdana;font-size:77%;padding:15px 0;}
                          #ygrp-ft{
                          font-family:verdana;font-size:77%;border-top:1px solid #666;
                          padding:5px 0;
                          }
                          #ygrp-mlmsg #logo{
                          padding-bottom:10px;}

                          #ygrp-vital{
                          background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                          #ygrp-vital #vithd{
                          font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                          #ygrp-vital ul{
                          padding:0;margin:2px 0;}
                          #ygrp-vital ul li{
                          list-style-type:none;clear:both;border:1px solid #e0ecee;
                          }
                          #ygrp-vital ul li .ct{
                          font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                          #ygrp-vital ul li .cat{
                          font-weight:bold;}
                          #ygrp-vital a {
                          text-decoration:none;}

                          #ygrp-vital a:hover{
                          text-decoration:underline;}

                          #ygrp-sponsor #hd{
                          color:#999;font-size:77%;}
                          #ygrp-sponsor #ov{
                          padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                          #ygrp-sponsor #ov ul{
                          padding:0 0 0 8px;margin:0;}
                          #ygrp-sponsor #ov li{
                          list-style-type:square;padding:6px 0;font-size:77%;}
                          #ygrp-sponsor #ov li a{
                          text-decoration:none;font-size:130%;}
                          #ygrp-sponsor #nc {
                          background-color:#eee;margin-bottom:20px;padding:0 8px;}
                          #ygrp-sponsor .ad{
                          padding:8px 0;}
                          #ygrp-sponsor .ad #hd1{
                          font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                          #ygrp-sponsor .ad a{
                          text-decoration:none;}
                          #ygrp-sponsor .ad a:hover{
                          text-decoration:underline;}
                          #ygrp-sponsor .ad p{
                          margin:0;}
                          o {font-size:0;}
                          .MsoNormal {
                          margin:0 0 0 0;}
                          #ygrp-text tt{
                          font-size:120%;}
                          blockquote{margin:0 0 0 4px;}
                          .replbq {margin:4;}
                          -->








                          Once upon a time there was 1 GB storage in your inbox. To know the happy ending go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

                          [Non-text portions of this message have been removed]
                        • Praveen.V.Nair
                          Dear Raj, It will be great if you can provide some sample code which demonstates sperate sessions on multiple tabs of the same browser. I faced the same
                          Message 12 of 22 , Aug 23, 2007
                          • 0 Attachment
                            Dear Raj,

                            It will be great if you can provide some sample code which demonstates
                            sperate "sessions" on multiple tabs of the same browser.

                            I faced the same situation in past and end-up in re-coding entire
                            application to use 'database' to store (virtual) sessions instead of
                            SESSIONS.

                            Best Regards
                            Praveen.


                            --- In phpKeralaUg@yahoogroups.com, ArunRaj R <raj47i@...> wrote:
                            >
                            > All i said was about maintaining multiple sessions (By default
                            session handling framework ) on the same server. But you can surely
                            solve your problem. PHP session handling in not that limited as we
                            normally expect. you can override the default session handling by
                            defining custom methods in php scripts. and all that are quite easy
                            too. Or alternatively the signing in and registration process are
                            different so treat them as different and your problem will get solved
                            quite easily. i meant keep the logged in user's information in say
                            $_SESSION['user'] = "username" and register the new user irrespective
                            of the $_SESSION['user'] value. Then the problem will be that you
                            can't sign in two different users at the same time. For that you must
                            have to override the session handling functions and keep track of the
                            client IP, session ID, your own assigned session id(recommend to pass
                            it via the URL - even it alone can solve your problem). I am sure that
                            some one else in
                            > phpkerala will be able to provide you with more help. If you cant
                            find much please give me a post at www.araj.in/board/ since wont check
                            the this group mails more than once a month(I am a bit busy with
                            current projects and maintanence of my website & forum at
                            www.araj.in). The same was the reason for not replying to your posts
                            this long.
                            >
                            > Please go here to find out how to make use of different session
                            handling methods.
                            >
                            > http://hostprogressive.com/support/php_5_docs/ref.session.html
                            >
                            > http://in.php.net/session
                            >
                            >
                            > session_cache_expire — Return current cache
                            expiresession_cache_limiter — Get and/or set the current cache
                            limitersession_commit — Alias of session_write_close()session_decode —
                            Decodes session data from a stringsession_destroy — Destroys all data
                            registered to a sessionsession_encode — Encodes the current session
                            data as a stringsession_get_cookie_params — Get the session cookie
                            parameterssession_id — Get and/or set the current session
                            idsession_is_registered — Find out whether a global variable is
                            registered in a sessionsession_module_name — Get and/or set the
                            current session modulesession_name — Get and/or set the current
                            session namesession_regenerate_id —
                            > Update the current session id with a newly generated one
                            > session_register — Register one or more global variables with the
                            current sessionsession_save_path — Get and/or set the current session
                            save pathsession_set_cookie_params — Set the session cookie
                            parameterssession_set_save_handler — Sets user-level session storage
                            functionssession_start — Initialize session datasession_unregister —
                            Unregister a global variable from the current sessionsession_unset —
                            Free all session variablessession_write_close — Write session data and
                            end session
                            > have a nice day..
                            >
                            > Raj
                            > [www.araj.in]
                            >
                            >
                            >
                            >
                            >
                            > ----- Original Message ----
                            > From: Mahabaleshwar <mahihs2002@...>
                            > To: phpKeralaUg@yahoogroups.com
                            > Sent: Thursday, 23 August, 2007 5:47:31 PM
                            > Subject: Re: [phpKerala] Session is preserving across browser tabs
                            or windows
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            > Dear Raj,
                            >
                            >
                            >
                            > Thank you very much for the reply and ur patience and spending time
                            >
                            > for writing in detail.
                            >
                            >
                            >
                            > Whatever you explained I understood and agree that in normal cases
                            >
                            > nobody will open more than one session at a time and should not be
                            >
                            > allowed.But this is an extraordinary case. Because the site is of
                            >
                            > Network marketing company and DSA's(companies Salespersons) of the
                            >
                            > company, who are using the site, will login in one tab of firefox and
                            >
                            > in another tab they will open the site again and try to join new
                            >
                            > customer under them (Like sponsors).At that time existing login and
                            >
                            > new customers sessions conflicts and creates problem.
                            >
                            >
                            >
                            > As you said i also not interested to passing session id's through
                            >
                            > URLs, since that is not secure and not practical
                            >
                            >
                            >
                            > As everybody said we cannot handle this problem since it is browser
                            >
                            > depended.May be this is a drawback of firefox/opera etc.
                            >
                            >
                            >
                            > regards,
                            >
                            > Bhat
                            >
                            >
                            >
                            > --- In phpKeralaUg@ yahoogroups. com, ArunRaj R <raj47i@> wrote:
                            >
                            > >
                            >
                            > > dear friend,
                            >
                            > >
                            >
                            > > No such requirements are usually expected. Since only a user is
                            >
                            > expected to use a system for browsing at a time. and so he should be
                            >
                            > maintaining a single session at time.
                            >
                            > >
                            >
                            > > In this case i assume you need to maintain two sessions for testing
                            >
                            > purposes. For this the easiest and effective solution is use more than
                            >
                            > one browsers. Say IE, Firefox, Opera Using these three you can
                            >
                            > maintain 3 different sessions in a single system.
                            >
                            > >
                            >
                            > > Still if you wanna go ahead with sesssion.use_ cookies = 0;
                            >
                            > > You may be able to do it. If you have decided not to use cookies for
                            >
                            > maintain for handling sessions,
                            >
                            > > the system will be sending the session IDs through the URL (Using
                            >
                            > GET Method.) You can find
                            >
                            > > ?PHPSESSID=[ Session ID]& in your address bar. But i dn't think it is
                            >
                            > a good idea. As you know each session is identified in the server
                            >
                            > using this ID, in the server. so if you are not able to pass the
                            >
                            > session_id from one scripts to another, they are supposed to be in
                            >
                            > different sessions. If something like that happens. It is supposed to
                            >
                            > be a bug in PHP, not a feature. And it doesnt happen. I have
                            >
                            > experimented it alot. Sometimes if your system is not sending the
                            >
                            > session id through URLs you can maintain different sessions. But in
                            >
                            > such a case you wont be able to maintain a proper session at all..
                            >
                            > >
                            >
                            > > And dear Guys and Praveen,
                            >
                            > > why are you all not insisting to make all these posts on the forum ?
                            >
                            > > If we are using mails, whats the meaning of having a forum ?
                            >
                            > > And remember the forum is of no use if there are no posts ...
                            >
                            > > Also it would be of more easy to read and reply in there. It wont
                            >
                            > waste our email space, some new member will also be able to see all
                            >
                            > the previous discussions.
                            >
                            > >
                            >
                            > > Raj
                            >
                            > > [www.araj.in]
                            >
                            > >
                            >
                            > >
                            >
                            > > ----- Original Message ----
                            >
                            > > From: Mahabaleshwar <mahihs2002@ ...>
                            >
                            > > To: phpKeralaUg@ yahoogroups. com
                            >
                            > > Sent: Monday, 20 August, 2007 5:36:22 PM
                            >
                            > > Subject: Re: [phpKerala] Session is preserving across browser tabs
                            >
                            > or windows
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > Hi arun,
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > my need is I want unique sessions for each tabs/windows. Changes made
                            >
                            > >
                            >
                            > > in one tab should not affect another tab.means different users should
                            >
                            > >
                            >
                            > > be able to login through different tabs/windows. Currently what
                            >
                            > >
                            >
                            > > happens is if you login in one tab and open a new tab/window and login
                            >
                            > >
                            >
                            > > as a different user, the first tab login will change with second user
                            >
                            > >
                            >
                            > > details.This only happens in firefox, opera not in IE.
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > For solving the above problem I changed configuration settings in
                            >
                            > >
                            >
                            > > php.ini as
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > sesssion.use_ cookies = 0;
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > when I did that the session is not working properly as I mentioned in
                            >
                            > >
                            >
                            > > the last mail.
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > PHP sessions are working perfectly. Only problem is it shares data
                            >
                            > >
                            >
                            > > when we open in different tabs, that i dont want. I want each tabs to
                            >
                            > >
                            >
                            > > be unique.
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > thanks & regards,
                            >
                            > >
                            >
                            > > bhat
                            >
                            > >
                            >
                            > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@
                            ...>
                            >
                            > >
                            >
                            > > wrote:
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > Hi,
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > Please check your first post. I answered for the first post, i.e.,
                            >
                            > >
                            >
                            > > how to pass values between different browser tabs or pages.
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > Now its becoming more confusing. I think if you can explain your
                            >
                            > >
                            >
                            > > real need with a good example, i hope that we can give you a more
                            >
                            > >
                            >
                            > > acceptable answer.
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > regards,
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > Arun Vasudevan
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > Mahabaleshwar <mahihs2002@ ...> wrote:
                            >
                            > >
                            >
                            > > No man,
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > if communication is btween two pages then it works fine, no
                            >
                            > problem in
                            >
                            > >
                            >
                            > > > that. but when there is intermediate page which is not loaded in to
                            >
                            > >
                            >
                            > > > the browser and there we use header() function to redirect to third
                            >
                            > >
                            >
                            > > > then in the third page new session will be started instead of
                            >
                            > >
                            >
                            > > > continuing the existing session.
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > the sample code is given below please check
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > first.php
                            >
                            > >
                            >
                            > > > <?session_start( );
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > $_SESSION['var1' ] = rand(2,8);
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > print("<html> <body><form name='frm1' method='post'
                            >
                            > >
                            >
                            > > action='second. php'");
                            >
                            > >
                            >
                            > > > print("<input type='submit' value='submit' >");
                            >
                            > >
                            >
                            > > > print("</form> ");
                            >
                            > >
                            >
                            > > > print("</body> </html>") ;
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > ?>
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > second.php
                            >
                            > >
                            >
                            > > > <?session_start( );
                            >
                            > >
                            >
                            > > > header("Location: third.php");
                            >
                            > >
                            >
                            > > > ?>
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > third.php
                            >
                            > >
                            >
                            > > > <?session_start( );
                            >
                            > >
                            >
                            > > > print($_SESSION[ 'var1']);
                            >
                            > >
                            >
                            > > > ?>
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan
                            <aruntechguy@ >
                            >
                            > >
                            >
                            > > > wrote:
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > Hi Friends,
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > It worked for me fine. Make sure that register_globals in your
                            >
                            > >
                            >
                            > > > php.ini is ON.
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > Try the below codes. First create first.php file and then
                            >
                            > >
                            >
                            > > > second.php. There content of the files are follows :
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > first.php
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > <?
                            >
                            > >
                            >
                            > > > > session_start( );
                            >
                            > >
                            >
                            > > > > $test = "Hello world";
                            >
                            > >
                            >
                            > > > > session_register( test);
                            >
                            > >
                            >
                            > > > > ?>
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > second.php
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > <?
                            >
                            > >
                            >
                            > > > > session_start( );
                            >
                            > >
                            >
                            > > > > echo $test;
                            >
                            > >
                            >
                            > > > > ?>
                            >
                            > >
                            >
                            > > > > Open browser and call first.php. Open a new page / browser window
                            >
                            > >
                            >
                            > > > and open the second page. You should see "Hello World". Try it
                            >
                            > out and
                            >
                            > >
                            >
                            > > > let us know it is working or not.
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > regards,
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > Arun Vasudevan
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > Mahabaleshwar <mahihs2002@ > wrote:
                            >
                            > >
                            >
                            > > > Sorry guys....,
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > it gives some unexpected results. if there is any in between
                            pages
                            >
                            > >
                            >
                            > > > > which is not loaded in to the browser then in each page it
                            >
                            > >
                            >
                            > > starts new
                            >
                            > >
                            >
                            > > > > session.
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > need to do something else i think
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > regards,
                            >
                            > >
                            >
                            > > > > Bhat
                            >
                            > >
                            >
                            > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@
                            >
                            > > wrote:
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > session.use_ cookies specifies whether the module will use
                            >
                            > >
                            >
                            > > cookies to
                            >
                            > >
                            >
                            > > > > store the session id on the client side
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > I am still surprised to hear you are successful in handling
                            >
                            > >
                            >
                            > > sessions
                            >
                            > >
                            >
                            > > > > in tabs seperately :). May be I must do some more experiments to
                            >
                            > >
                            >
                            > > > > confirm this.
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > Best Regards
                            >
                            > >
                            >
                            > > > > > Praveen.
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > Mahabaleshwar <mahihs2002@ > wrote:
                            >
                            >
                            >
                            > >
                            >
                            > > > > Ok
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > I got one solution for this problem
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > in php.ini make
                            >
                            > >
                            >
                            > > > > > session.use_ cookies = 0
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > the problem is using session cookies.if we disable it works
                            >
                            > fine
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > plz tell me is there any problem by doing this?
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > thanks for all
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > regards,
                            >
                            > >
                            >
                            > > > > > bhat
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > --- In phpKeralaUg@ yahoogroups. com, "Mahabaleshwar"
                            >
                            > <mahihs2002@ >
                            >
                            > >
                            >
                            > > > > > wrote:
                            >
                            > >
                            >
                            > > > > > >
                            >
                            > >
                            >
                            > > > > > > Hi praveen,
                            >
                            > >
                            >
                            > > > > > >
                            >
                            > >
                            >
                            > > > > > > Thank u for ur reply.
                            >
                            > >
                            >
                            > > > > > > But in my local server it creates different session files
                            >
                            > >
                            >
                            > > for each
                            >
                            > >
                            >
                            > > > > > > tabs/windows. I checked all the configuration settings in
                            >
                            > >
                            >
                            > > > php.ini file
                            >
                            > >
                            >
                            > > > > > > but could not able to rectify.when I replaced local php.ini
                            >
                            > >
                            >
                            > > > file with
                            >
                            > >
                            >
                            > > > > > > the server file same problem happens. Then I reverted the
                            >
                            > local
                            >
                            > >
                            >
                            > > > > > > php.ini file, the problem continued(I restarted apache each
                            >
                            > >
                            >
                            > > > > time).Then
                            >
                            > >
                            >
                            > > > > > > I rebooted local machine, now it again creates different
                            >
                            > >
                            >
                            > > session
                            >
                            > >
                            >
                            > > > > files.
                            >
                            > >
                            >
                            > > > > > > So I confused why this happens
                            >
                            > >
                            >
                            > > > > > >
                            >
                            > >
                            >
                            > > > > > > regards,
                            >
                            > >
                            >
                            > > > > > > bhat
                            >
                            > >
                            >
                            > > > > > >
                            >
                            > >
                            >
                            > > > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V
                            >
                            > <ninethsense@ >
                            >
                            > >
                            >
                            > > > wrote:
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > Hi,
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > Actually it is not a 'problem' but a feature of
                            >
                            > >
                            >
                            > > browsers. Not
                            >
                            > >
                            >
                            > > > > with
                            >
                            > >
                            >
                            > > > > > > PHP, all the server side languages (asp.net, etc.) behave
                            >
                            > like
                            >
                            > >
                            >
                            > > > this.
                            >
                            > >
                            >
                            > > > > > > The whole browser instance is considered as a single
                            session.
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > If you really want to keep each tabs different, you may
                            >
                            > >
                            >
                            > > > need to
                            >
                            > >
                            >
                            > > > > > > avoid the usage of SESSION and find some tricks. One option
                            >
                            > >
                            >
                            > > is use
                            >
                            > >
                            >
                            > > > > > > database to handle your session vars.
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > Best Regards
                            >
                            > >
                            >
                            > > > > > > > Praveen.
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > Mahabaleshwar <mahihs2002@ > wrote:
                            >
                            > >
                            >
                            > > > > > > > Dear all,
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > I have a problem in PHP session handling. when I open my
                            >
                            > >
                            >
                            > > > website in
                            >
                            > >
                            >
                            > > > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use
                            >
                            > >
                            >
                            > > > 'Control+N' in IE
                            >
                            > >
                            >
                            > > > > > > > 6.0 to open a new window, it is using the same session,
                            >
                            > >
                            >
                            > > so the
                            >
                            > >
                            >
                            > > > > another
                            >
                            > >
                            >
                            > > > > > > > tab is just a copy of the previous tab. What i do in
                            >
                            > one will
                            >
                            > >
                            >
                            > > > > affect
                            >
                            > >
                            >
                            > > > > > > > the another and vice-versa. Even if i open Firefox
                            >
                            > again, it
                            >
                            > >
                            >
                            > > > > will use
                            >
                            > >
                            >
                            > > > > > > > the same session of the previous session. But that is not
                            >
                            > >
                            >
                            > > what
                            >
                            > >
                            >
                            > > > > I need
                            >
                            > >
                            >
                            > > > > > > > mostly of time, specially when i want to copy information
                            >
                            > >
                            >
                            > > > from one
                            >
                            > >
                            >
                            > > > > > > > place to another in my web application.
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > How to solve this problem, plz help me.
                            >
                            > >
                            >
                            > > > > > > > Is there any configuration settings I have to do in
                            >
                            > >
                            >
                            > > php/apache.
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > regards,
                            >
                            > >
                            >
                            > > > > > > > Bhat
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > > > [Non-text portions of this message have been removed]
                            >
                            > >
                            >
                            > > > > > > >
                            >
                            > >
                            >
                            > > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > > > [Non-text portions of this message have been removed]
                            >
                            > >
                            >
                            > > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > ------------ --------- --------- ---
                            >
                            > >
                            >
                            > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s
                            >
                            > >
                            >
                            > > > user panel and lay it on us.
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > > > [Non-text portions of this message have been removed]
                            >
                            > >
                            >
                            > > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > ------------ --------- --------- ---
                            >
                            > >
                            >
                            > > > Luggage? GPS? Comic books?
                            >
                            > >
                            >
                            > > > Check out fitting gifts for grads at Yahoo! Search.
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > > > [Non-text portions of this message have been removed]
                            >
                            > >
                            >
                            > > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > <!--
                            >
                            > >
                            >
                            > > #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean,
                            >
                            > sans-serif;}
                            >
                            > > #ygrp-mlmsg table {font-size:inherit; font:100% ;}
                            >
                            > > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,
                            >
                            > clean, sans-serif;}
                            >
                            > > #ygrp-mlmsg pre, code {font:115% monospace;}
                            >
                            > > #ygrp-mlmsg * {line-height: 1.22em;}
                            >
                            > > #ygrp-text{
                            >
                            > > font-family: Georgia;
                            >
                            > > }
                            >
                            > > #ygrp-text p{
                            >
                            > > margin:0 0 1em 0;}
                            >
                            > > #ygrp-tpmsgs{
                            >
                            > > font-family: Arial;
                            >
                            > > clear:both;}
                            >
                            > > #ygrp-vitnav{
                            >
                            > > padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;}
                            >
                            > > #ygrp-vitnav a{
                            >
                            > > padding:0 1px;}
                            >
                            > > #ygrp-actbar{
                            >
                            > > clear:both;margin: 25px
                            >
                            > 0;white-space: nowrap;color: #666;text- align:right; }
                            >
                            > > #ygrp-actbar .left{
                            >
                            > > float:left;white- space:nowrap; }
                            >
                            > > .bld{font-weight: bold;}
                            >
                            > > #ygrp-grft{
                            >
                            > > font-family: Verdana;font- size:77%; padding:15px 0;}
                            >
                            > > #ygrp-ft{
                            >
                            > > font-family: verdana;font- size:77%; border-top: 1px solid #666;
                            >
                            > > padding:5px 0;
                            >
                            > > }
                            >
                            > > #ygrp-mlmsg #logo{
                            >
                            > > padding-bottom: 10px;}
                            >
                            > >
                            >
                            > > #ygrp-vital{
                            >
                            > > background-color: #e0ecee;margin- bottom:20px; padding:2px 0 8px 8px;}
                            >
                            > > #ygrp-vital #vithd{
                            >
                            > >
                            >
                            > font-size:77% ;font-family: Verdana;font- weight:bold; color:#333;
                            text-transform: uppercase; }
                            >
                            > > #ygrp-vital ul{
                            >
                            > > padding:0;margin: 2px 0;}
                            >
                            > > #ygrp-vital ul li{
                            >
                            > > list-style-type: none;clear: both;border: 1px solid #e0ecee;
                            >
                            > > }
                            >
                            > > #ygrp-vital ul li .ct{
                            >
                            > >
                            >
                            > font-weight: bold;color: #ff7900;float: right;width: 2em;text-
                            align:right; padding-right: .5em;}
                            >
                            > > #ygrp-vital ul li .cat{
                            >
                            > > font-weight: bold;}
                            >
                            > > #ygrp-vital a {
                            >
                            > > text-decoration: none;}
                            >
                            > >
                            >
                            > > #ygrp-vital a:hover{
                            >
                            > > text-decoration: underline; }
                            >
                            > >
                            >
                            > > #ygrp-sponsor #hd{
                            >
                            > > color:#999;font- size:77%; }
                            >
                            > > #ygrp-sponsor #ov{
                            >
                            > > padding:6px 13px;background- color:#e0ecee; margin-bottom: 20px;}
                            >
                            > > #ygrp-sponsor #ov ul{
                            >
                            > > padding:0 0 0 8px;margin:0; }
                            >
                            > > #ygrp-sponsor #ov li{
                            >
                            > > list-style-type: square;padding: 6px 0;font-size: 77%;}
                            >
                            > > #ygrp-sponsor #ov li a{
                            >
                            > > text-decoration: none;font- size:130% ;}
                            >
                            > > #ygrp-sponsor #nc {
                            >
                            > > background-color: #eee;margin- bottom:20px; padding:0 8px;}
                            >
                            > > #ygrp-sponsor .ad{
                            >
                            > > padding:8px 0;}
                            >
                            > > #ygrp-sponsor .ad #hd1{
                            >
                            > >
                            >
                            > font-family: Arial;font- weight:bold; color:#628c2a; font-size:
                            100%;line- height:122% ;}
                            >
                            > > #ygrp-sponsor .ad a{
                            >
                            > > text-decoration: none;}
                            >
                            > > #ygrp-sponsor .ad a:hover{
                            >
                            > > text-decoration: underline; }
                            >
                            > > #ygrp-sponsor .ad p{
                            >
                            > > margin:0;}
                            >
                            > > o {font-size:0; }
                            >
                            > > .MsoNormal {
                            >
                            > > margin:0 0 0 0;}
                            >
                            > > #ygrp-text tt{
                            >
                            > > font-size:120% ;}
                            >
                            > > blockquote{margin: 0 0 0 4px;}
                            >
                            > > .replbq {margin:4;}
                            >
                            > > -->
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > >
                            >
                            > > Once upon a time there was 1 GB storage in your inbox. To know
                            >
                            > the happy ending go to
                            >
                            > http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html
                            >
                            > >
                            >
                            > > [Non-text portions of this message have been removed]
                            >
                            > >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            > <!--
                            >
                            > #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean,
                            sans-serif;}
                            > #ygrp-mlmsg table {font-size:inherit;font:100%;}
                            > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,
                            clean, sans-serif;}
                            > #ygrp-mlmsg pre, code {font:115% monospace;}
                            > #ygrp-mlmsg * {line-height:1.22em;}
                            > #ygrp-text{
                            > font-family:Georgia;
                            > }
                            > #ygrp-text p{
                            > margin:0 0 1em 0;}
                            > #ygrp-tpmsgs{
                            > font-family:Arial;
                            > clear:both;}
                            > #ygrp-vitnav{
                            > padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                            > #ygrp-vitnav a{
                            > padding:0 1px;}
                            > #ygrp-actbar{
                            > clear:both;margin:25px
                            0;white-space:nowrap;color:#666;text-align:right;}
                            > #ygrp-actbar .left{
                            > float:left;white-space:nowrap;}
                            > .bld{font-weight:bold;}
                            > #ygrp-grft{
                            > font-family:Verdana;font-size:77%;padding:15px 0;}
                            > #ygrp-ft{
                            > font-family:verdana;font-size:77%;border-top:1px solid #666;
                            > padding:5px 0;
                            > }
                            > #ygrp-mlmsg #logo{
                            > padding-bottom:10px;}
                            >
                            > #ygrp-vital{
                            > background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                            > #ygrp-vital #vithd{
                            >
                            font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                            > #ygrp-vital ul{
                            > padding:0;margin:2px 0;}
                            > #ygrp-vital ul li{
                            > list-style-type:none;clear:both;border:1px solid #e0ecee;
                            > }
                            > #ygrp-vital ul li .ct{
                            >
                            font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                            > #ygrp-vital ul li .cat{
                            > font-weight:bold;}
                            > #ygrp-vital a {
                            > text-decoration:none;}
                            >
                            > #ygrp-vital a:hover{
                            > text-decoration:underline;}
                            >
                            > #ygrp-sponsor #hd{
                            > color:#999;font-size:77%;}
                            > #ygrp-sponsor #ov{
                            > padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                            > #ygrp-sponsor #ov ul{
                            > padding:0 0 0 8px;margin:0;}
                            > #ygrp-sponsor #ov li{
                            > list-style-type:square;padding:6px 0;font-size:77%;}
                            > #ygrp-sponsor #ov li a{
                            > text-decoration:none;font-size:130%;}
                            > #ygrp-sponsor #nc {
                            > background-color:#eee;margin-bottom:20px;padding:0 8px;}
                            > #ygrp-sponsor .ad{
                            > padding:8px 0;}
                            > #ygrp-sponsor .ad #hd1{
                            >
                            font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                            > #ygrp-sponsor .ad a{
                            > text-decoration:none;}
                            > #ygrp-sponsor .ad a:hover{
                            > text-decoration:underline;}
                            > #ygrp-sponsor .ad p{
                            > margin:0;}
                            > o {font-size:0;}
                            > .MsoNormal {
                            > margin:0 0 0 0;}
                            > #ygrp-text tt{
                            > font-size:120%;}
                            > blockquote{margin:0 0 0 4px;}
                            > .replbq {margin:4;}
                            > -->
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            >
                            > Once upon a time there was 1 GB storage in your inbox. To know
                            the happy ending go to
                            http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
                            >
                            > [Non-text portions of this message have been removed]
                            >
                          • ArunRaj R
                            We cant maintain seperate PHP sessions in a browser simultaneously. But we can wrap the PHP session with another one say we create a new session id for each
                            Message 13 of 22 , Aug 24, 2007
                            • 0 Attachment
                              We cant maintain seperate PHP sessions in a browser simultaneously.
                              But we can wrap the PHP session with another one say we create a new session id for each new session we need this is not same as session_id(); you hav to implement it. It is just an idea and i havent implemented it yet. If you are looking for some guides on custom session handling you can use the Professional PHP 5 from Wrox .



                              ----- Original Message ----
                              From: Praveen.V.Nair <ninethsense@...>
                              To: phpKeralaUg@yahoogroups.com
                              Sent: Thursday, 23 August, 2007 10:46:46 PM
                              Subject: Re: [phpKerala] Session is preserving across browser tabs or windows













                              Dear Raj,



                              It will be great if you can provide some sample code which demonstates

                              sperate "sessions" on multiple tabs of the same browser.



                              I faced the same situation in past and end-up in re-coding entire

                              application to use 'database' to store (virtual) sessions instead of

                              SESSIONS.



                              Best Regards

                              Praveen.



                              --- In phpKeralaUg@ yahoogroups. com, ArunRaj R <raj47i@...> wrote:

                              >

                              > All i said was about maintaining multiple sessions (By default

                              session handling framework ) on the same server. But you can surely

                              solve your problem. PHP session handling in not that limited as we

                              normally expect. you can override the default session handling by

                              defining custom methods in php scripts. and all that are quite easy

                              too. Or alternatively the signing in and registration process are

                              different so treat them as different and your problem will get solved

                              quite easily. i meant keep the logged in user's information in say

                              $_SESSION['user' ] = "username" and register the new user irrespective

                              of the $_SESSION['user' ] value. Then the problem will be that you

                              can't sign in two different users at the same time. For that you must

                              have to override the session handling functions and keep track of the

                              client IP, session ID, your own assigned session id(recommend to pass

                              it via the URL - even it alone can solve your problem). I am sure that

                              some one else in

                              > phpkerala will be able to provide you with more help. If you cant

                              find much please give me a post at www.araj.in/ board/ since wont check

                              the this group mails more than once a month(I am a bit busy with

                              current projects and maintanence of my website & forum at

                              www.araj.in) . The same was the reason for not replying to your posts

                              this long.

                              >

                              > Please go here to find out how to make use of different session

                              handling methods.

                              >

                              > http://hostprogress ive.com/support/ php_5_docs/ ref.session. html

                              >

                              > http://in.php. net/session

                              >

                              >

                              > session_cache_ expire — Return current cache

                              expiresession_ cache_limiter — Get and/or set the current cache

                              limitersession_ commit — Alias of session_write_ close()session_ decode —

                              Decodes session data from a stringsession_ destroy — Destroys all data

                              registered to a sessionsession_ encode — Encodes the current session

                              data as a stringsession_ get_cookie_ params — Get the session cookie

                              parameterssession_ id — Get and/or set the current session

                              idsession_is_ registered — Find out whether a global variable is

                              registered in a sessionsession_ module_name — Get and/or set the

                              current session modulesession_ name — Get and/or set the current

                              session namesession_ regenerate_ id —

                              > Update the current session id with a newly generated one

                              > session_register — Register one or more global variables with the

                              current sessionsession_ save_path — Get and/or set the current session

                              save pathsession_ set_cookie_ params — Set the session cookie

                              parameterssession_ set_save_ handler — Sets user-level session storage

                              functionssession_ start — Initialize session datasession_ unregister —

                              Unregister a global variable from the current sessionsession_ unset —

                              Free all session variablessession_ write_close — Write session data and

                              end session

                              > have a nice day..

                              >

                              > Raj

                              > [www.araj.in]

                              >

                              >

                              >

                              >

                              >

                              > ----- Original Message ----

                              > From: Mahabaleshwar <mahihs2002@ ...>

                              > To: phpKeralaUg@ yahoogroups. com

                              > Sent: Thursday, 23 August, 2007 5:47:31 PM

                              > Subject: Re: [phpKerala] Session is preserving across browser tabs

                              or windows

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              > Dear Raj,

                              >

                              >

                              >

                              > Thank you very much for the reply and ur patience and spending time

                              >

                              > for writing in detail.

                              >

                              >

                              >

                              > Whatever you explained I understood and agree that in normal cases

                              >

                              > nobody will open more than one session at a time and should not be

                              >

                              > allowed.But this is an extraordinary case. Because the site is of

                              >

                              > Network marketing company and DSA's(companies Salespersons) of the

                              >

                              > company, who are using the site, will login in one tab of firefox and

                              >

                              > in another tab they will open the site again and try to join new

                              >

                              > customer under them (Like sponsors).At that time existing login and

                              >

                              > new customers sessions conflicts and creates problem.

                              >

                              >

                              >

                              > As you said i also not interested to passing session id's through

                              >

                              > URLs, since that is not secure and not practical

                              >

                              >

                              >

                              > As everybody said we cannot handle this problem since it is browser

                              >

                              > depended.May be this is a drawback of firefox/opera etc.

                              >

                              >

                              >

                              > regards,

                              >

                              > Bhat

                              >

                              >

                              >

                              > --- In phpKeralaUg@ yahoogroups. com, ArunRaj R <raj47i@> wrote:

                              >

                              > >

                              >

                              > > dear friend,

                              >

                              > >

                              >

                              > > No such requirements are usually expected. Since only a user is

                              >

                              > expected to use a system for browsing at a time. and so he should be

                              >

                              > maintaining a single session at time.

                              >

                              > >

                              >

                              > > In this case i assume you need to maintain two sessions for testing

                              >

                              > purposes. For this the easiest and effective solution is use more than

                              >

                              > one browsers. Say IE, Firefox, Opera Using these three you can

                              >

                              > maintain 3 different sessions in a single system.

                              >

                              > >

                              >

                              > > Still if you wanna go ahead with sesssion.use_ cookies = 0;

                              >

                              > > You may be able to do it. If you have decided not to use cookies for

                              >

                              > maintain for handling sessions,

                              >

                              > > the system will be sending the session IDs through the URL (Using

                              >

                              > GET Method.) You can find

                              >

                              > > ?PHPSESSID=[ Session ID]& in your address bar. But i dn't think it is

                              >

                              > a good idea. As you know each session is identified in the server

                              >

                              > using this ID, in the server. so if you are not able to pass the

                              >

                              > session_id from one scripts to another, they are supposed to be in

                              >

                              > different sessions. If something like that happens. It is supposed to

                              >

                              > be a bug in PHP, not a feature. And it doesnt happen. I have

                              >

                              > experimented it alot. Sometimes if your system is not sending the

                              >

                              > session id through URLs you can maintain different sessions. But in

                              >

                              > such a case you wont be able to maintain a proper session at all..

                              >

                              > >

                              >

                              > > And dear Guys and Praveen,

                              >

                              > > why are you all not insisting to make all these posts on the forum ?

                              >

                              > > If we are using mails, whats the meaning of having a forum ?

                              >

                              > > And remember the forum is of no use if there are no posts ...

                              >

                              > > Also it would be of more easy to read and reply in there. It wont

                              >

                              > waste our email space, some new member will also be able to see all

                              >

                              > the previous discussions.

                              >

                              > >

                              >

                              > > Raj

                              >

                              > > [www.araj.in]

                              >

                              > >

                              >

                              > >

                              >

                              > > ----- Original Message ----

                              >

                              > > From: Mahabaleshwar <mahihs2002@ ...>

                              >

                              > > To: phpKeralaUg@ yahoogroups. com

                              >

                              > > Sent: Monday, 20 August, 2007 5:36:22 PM

                              >

                              > > Subject: Re: [phpKerala] Session is preserving across browser tabs

                              >

                              > or windows

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > Hi arun,

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > my need is I want unique sessions for each tabs/windows. Changes made

                              >

                              > >

                              >

                              > > in one tab should not affect another tab.means different users should

                              >

                              > >

                              >

                              > > be able to login through different tabs/windows. Currently what

                              >

                              > >

                              >

                              > > happens is if you login in one tab and open a new tab/window and login

                              >

                              > >

                              >

                              > > as a different user, the first tab login will change with second user

                              >

                              > >

                              >

                              > > details.This only happens in firefox, opera not in IE.

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > For solving the above problem I changed configuration settings in

                              >

                              > >

                              >

                              > > php.ini as

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > sesssion.use_ cookies = 0;

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > when I did that the session is not working properly as I mentioned in

                              >

                              > >

                              >

                              > > the last mail.

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > PHP sessions are working perfectly. Only problem is it shares data

                              >

                              > >

                              >

                              > > when we open in different tabs, that i dont want. I want each tabs to

                              >

                              > >

                              >

                              > > be unique.

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > thanks & regards,

                              >

                              > >

                              >

                              > > bhat

                              >

                              > >

                              >

                              > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan <aruntechguy@

                              ...>

                              >

                              > >

                              >

                              > > wrote:

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > Hi,

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > Please check your first post. I answered for the first post, i.e.,

                              >

                              > >

                              >

                              > > how to pass values between different browser tabs or pages.

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > Now its becoming more confusing. I think if you can explain your

                              >

                              > >

                              >

                              > > real need with a good example, i hope that we can give you a more

                              >

                              > >

                              >

                              > > acceptable answer.

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > regards,

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > Arun Vasudevan

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > Mahabaleshwar <mahihs2002@ ...> wrote:

                              >

                              > >

                              >

                              > > No man,

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > if communication is btween two pages then it works fine, no

                              >

                              > problem in

                              >

                              > >

                              >

                              > > > that. but when there is intermediate page which is not loaded in to

                              >

                              > >

                              >

                              > > > the browser and there we use header() function to redirect to third

                              >

                              > >

                              >

                              > > > then in the third page new session will be started instead of

                              >

                              > >

                              >

                              > > > continuing the existing session.

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > the sample code is given below please check

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > first.php

                              >

                              > >

                              >

                              > > > <?session_start( );

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > $_SESSION['var1' ] = rand(2,8);

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > print("<html> <body><form name='frm1' method='post'

                              >

                              > >

                              >

                              > > action='second. php'");

                              >

                              > >

                              >

                              > > > print("<input type='submit' value='submit' >");

                              >

                              > >

                              >

                              > > > print("</form> ");

                              >

                              > >

                              >

                              > > > print("</body> </html>") ;

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > ?>

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > second.php

                              >

                              > >

                              >

                              > > > <?session_start( );

                              >

                              > >

                              >

                              > > > header("Location: third.php");

                              >

                              > >

                              >

                              > > > ?>

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > third.php

                              >

                              > >

                              >

                              > > > <?session_start( );

                              >

                              > >

                              >

                              > > > print($_SESSION[ 'var1']);

                              >

                              > >

                              >

                              > > > ?>

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > --- In phpKeralaUg@ yahoogroups. com, Arun Vasudevan

                              <aruntechguy@ >

                              >

                              > >

                              >

                              > > > wrote:

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > Hi Friends,

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > It worked for me fine. Make sure that register_globals in your

                              >

                              > >

                              >

                              > > > php.ini is ON.

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > Try the below codes. First create first.php file and then

                              >

                              > >

                              >

                              > > > second.php. There content of the files are follows :

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > first.php

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > <?

                              >

                              > >

                              >

                              > > > > session_start( );

                              >

                              > >

                              >

                              > > > > $test = "Hello world";

                              >

                              > >

                              >

                              > > > > session_register( test);

                              >

                              > >

                              >

                              > > > > ?>

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > second.php

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > <?

                              >

                              > >

                              >

                              > > > > session_start( );

                              >

                              > >

                              >

                              > > > > echo $test;

                              >

                              > >

                              >

                              > > > > ?>

                              >

                              > >

                              >

                              > > > > Open browser and call first.php. Open a new page / browser window

                              >

                              > >

                              >

                              > > > and open the second page. You should see "Hello World". Try it

                              >

                              > out and

                              >

                              > >

                              >

                              > > > let us know it is working or not.

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > regards,

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > Arun Vasudevan

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > Mahabaleshwar <mahihs2002@ > wrote:

                              >

                              > >

                              >

                              > > > Sorry guys....,

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > it gives some unexpected results. if there is any in between

                              pages

                              >

                              > >

                              >

                              > > > > which is not loaded in to the browser then in each page it

                              >

                              > >

                              >

                              > > starts new

                              >

                              > >

                              >

                              > > > > session.

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > need to do something else i think

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > regards,

                              >

                              > >

                              >

                              > > > > Bhat

                              >

                              > >

                              >

                              > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V <ninethsense@

                              >

                              > > wrote:

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > session.use_ cookies specifies whether the module will use

                              >

                              > >

                              >

                              > > cookies to

                              >

                              > >

                              >

                              > > > > store the session id on the client side

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > I am still surprised to hear you are successful in handling

                              >

                              > >

                              >

                              > > sessions

                              >

                              > >

                              >

                              > > > > in tabs seperately :). May be I must do some more experiments to

                              >

                              > >

                              >

                              > > > > confirm this.

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > Best Regards

                              >

                              > >

                              >

                              > > > > > Praveen.

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > Mahabaleshwar <mahihs2002@ > wrote:

                              >

                              >

                              >

                              > >

                              >

                              > > > > Ok

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > I got one solution for this problem

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > in php.ini make

                              >

                              > >

                              >

                              > > > > > session.use_ cookies = 0

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > the problem is using session cookies.if we disable it works

                              >

                              > fine

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > plz tell me is there any problem by doing this?

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > thanks for all

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > regards,

                              >

                              > >

                              >

                              > > > > > bhat

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > --- In phpKeralaUg@ yahoogroups. com, "Mahabaleshwar"

                              >

                              > <mahihs2002@ >

                              >

                              > >

                              >

                              > > > > > wrote:

                              >

                              > >

                              >

                              > > > > > >

                              >

                              > >

                              >

                              > > > > > > Hi praveen,

                              >

                              > >

                              >

                              > > > > > >

                              >

                              > >

                              >

                              > > > > > > Thank u for ur reply.

                              >

                              > >

                              >

                              > > > > > > But in my local server it creates different session files

                              >

                              > >

                              >

                              > > for each

                              >

                              > >

                              >

                              > > > > > > tabs/windows. I checked all the configuration settings in

                              >

                              > >

                              >

                              > > > php.ini file

                              >

                              > >

                              >

                              > > > > > > but could not able to rectify.when I replaced local php.ini

                              >

                              > >

                              >

                              > > > file with

                              >

                              > >

                              >

                              > > > > > > the server file same problem happens. Then I reverted the

                              >

                              > local

                              >

                              > >

                              >

                              > > > > > > php.ini file, the problem continued(I restarted apache each

                              >

                              > >

                              >

                              > > > > time).Then

                              >

                              > >

                              >

                              > > > > > > I rebooted local machine, now it again creates different

                              >

                              > >

                              >

                              > > session

                              >

                              > >

                              >

                              > > > > files.

                              >

                              > >

                              >

                              > > > > > > So I confused why this happens

                              >

                              > >

                              >

                              > > > > > >

                              >

                              > >

                              >

                              > > > > > > regards,

                              >

                              > >

                              >

                              > > > > > > bhat

                              >

                              > >

                              >

                              > > > > > >

                              >

                              > >

                              >

                              > > > > > > --- In phpKeralaUg@ yahoogroups. com, Praveen V

                              >

                              > <ninethsense@ >

                              >

                              > >

                              >

                              > > > wrote:

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > Hi,

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > Actually it is not a 'problem' but a feature of

                              >

                              > >

                              >

                              > > browsers. Not

                              >

                              > >

                              >

                              > > > > with

                              >

                              > >

                              >

                              > > > > > > PHP, all the server side languages (asp.net, etc.) behave

                              >

                              > like

                              >

                              > >

                              >

                              > > > this.

                              >

                              > >

                              >

                              > > > > > > The whole browser instance is considered as a single

                              session.

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > If you really want to keep each tabs different, you may

                              >

                              > >

                              >

                              > > > need to

                              >

                              > >

                              >

                              > > > > > > avoid the usage of SESSION and find some tricks. One option

                              >

                              > >

                              >

                              > > is use

                              >

                              > >

                              >

                              > > > > > > database to handle your session vars.

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > Best Regards

                              >

                              > >

                              >

                              > > > > > > > Praveen.

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > Mahabaleshwar <mahihs2002@ > wrote:

                              >

                              > >

                              >

                              > > > > > > > Dear all,

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > I have a problem in PHP session handling. when I open my

                              >

                              > >

                              >

                              > > > website in

                              >

                              > >

                              >

                              > > > > > > > two or more tabs in Firefox, Opera, IE 7.0 or use

                              >

                              > >

                              >

                              > > > 'Control+N' in IE

                              >

                              > >

                              >

                              > > > > > > > 6.0 to open a new window, it is using the same session,

                              >

                              > >

                              >

                              > > so the

                              >

                              > >

                              >

                              > > > > another

                              >

                              > >

                              >

                              > > > > > > > tab is just a copy of the previous tab. What i do in

                              >

                              > one will

                              >

                              > >

                              >

                              > > > > affect

                              >

                              > >

                              >

                              > > > > > > > the another and vice-versa. Even if i open Firefox

                              >

                              > again, it

                              >

                              > >

                              >

                              > > > > will use

                              >

                              > >

                              >

                              > > > > > > > the same session of the previous session. But that is not

                              >

                              > >

                              >

                              > > what

                              >

                              > >

                              >

                              > > > > I need

                              >

                              > >

                              >

                              > > > > > > > mostly of time, specially when i want to copy information

                              >

                              > >

                              >

                              > > > from one

                              >

                              > >

                              >

                              > > > > > > > place to another in my web application.

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > How to solve this problem, plz help me.

                              >

                              > >

                              >

                              > > > > > > > Is there any configuration settings I have to do in

                              >

                              > >

                              >

                              > > php/apache.

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > regards,

                              >

                              > >

                              >

                              > > > > > > > Bhat

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > > > [Non-text portions of this message have been removed]

                              >

                              > >

                              >

                              > > > > > > >

                              >

                              > >

                              >

                              > > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > > > [Non-text portions of this message have been removed]

                              >

                              > >

                              >

                              > > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > ------------ --------- --------- ---

                              >

                              > >

                              >

                              > > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s

                              >

                              > >

                              >

                              > > > user panel and lay it on us.

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > > > [Non-text portions of this message have been removed]

                              >

                              > >

                              >

                              > > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > ------------ --------- --------- ---

                              >

                              > >

                              >

                              > > > Luggage? GPS? Comic books?

                              >

                              > >

                              >

                              > > > Check out fitting gifts for grads at Yahoo! Search.

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > > > [Non-text portions of this message have been removed]

                              >

                              > >

                              >

                              > > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > <!--

                              >

                              > >

                              >

                              > > #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean,

                              >

                              > sans-serif;}

                              >

                              > > #ygrp-mlmsg table {font-size:inherit; font:100% ;}

                              >

                              > > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,

                              >

                              > clean, sans-serif;}

                              >

                              > > #ygrp-mlmsg pre, code {font:115% monospace;}

                              >

                              > > #ygrp-mlmsg * {line-height: 1.22em;}

                              >

                              > > #ygrp-text{

                              >

                              > > font-family: Georgia;

                              >

                              > > }

                              >

                              > > #ygrp-text p{

                              >

                              > > margin:0 0 1em 0;}

                              >

                              > > #ygrp-tpmsgs{

                              >

                              > > font-family: Arial;

                              >

                              > > clear:both;}

                              >

                              > > #ygrp-vitnav{

                              >

                              > > padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;}

                              >

                              > > #ygrp-vitnav a{

                              >

                              > > padding:0 1px;}

                              >

                              > > #ygrp-actbar{

                              >

                              > > clear:both;margin: 25px

                              >

                              > 0;white-space: nowrap;color: #666;text- align:right; }

                              >

                              > > #ygrp-actbar .left{

                              >

                              > > float:left;white- space:nowrap; }

                              >

                              > > .bld{font-weight: bold;}

                              >

                              > > #ygrp-grft{

                              >

                              > > font-family: Verdana;font- size:77%; padding:15px 0;}

                              >

                              > > #ygrp-ft{

                              >

                              > > font-family: verdana;font- size:77%; border-top: 1px solid #666;

                              >

                              > > padding:5px 0;

                              >

                              > > }

                              >

                              > > #ygrp-mlmsg #logo{

                              >

                              > > padding-bottom: 10px;}

                              >

                              > >

                              >

                              > > #ygrp-vital{

                              >

                              > > background-color: #e0ecee;margin- bottom:20px; padding:2px 0 8px 8px;}

                              >

                              > > #ygrp-vital #vithd{

                              >

                              > >

                              >

                              > font-size:77% ;font-family: Verdana;font- weight:bold; color:#333;

                              text-transform: uppercase; }

                              >

                              > > #ygrp-vital ul{

                              >

                              > > padding:0;margin: 2px 0;}

                              >

                              > > #ygrp-vital ul li{

                              >

                              > > list-style-type: none;clear: both;border: 1px solid #e0ecee;

                              >

                              > > }

                              >

                              > > #ygrp-vital ul li .ct{

                              >

                              > >

                              >

                              > font-weight: bold;color: #ff7900;float: right;width: 2em;text-

                              align:right; padding-right: .5em;}

                              >

                              > > #ygrp-vital ul li .cat{

                              >

                              > > font-weight: bold;}

                              >

                              > > #ygrp-vital a {

                              >

                              > > text-decoration: none;}

                              >

                              > >

                              >

                              > > #ygrp-vital a:hover{

                              >

                              > > text-decoration: underline; }

                              >

                              > >

                              >

                              > > #ygrp-sponsor #hd{

                              >

                              > > color:#999;font- size:77%; }

                              >

                              > > #ygrp-sponsor #ov{

                              >

                              > > padding:6px 13px;background- color:#e0ecee; margin-bottom: 20px;}

                              >

                              > > #ygrp-sponsor #ov ul{

                              >

                              > > padding:0 0 0 8px;margin:0; }

                              >

                              > > #ygrp-sponsor #ov li{

                              >

                              > > list-style-type: square;padding: 6px 0;font-size: 77%;}

                              >

                              > > #ygrp-sponsor #ov li a{

                              >

                              > > text-decoration: none;font- size:130% ;}

                              >

                              > > #ygrp-sponsor #nc {

                              >

                              > > background-color: #eee;margin- bottom:20px; padding:0 8px;}

                              >

                              > > #ygrp-sponsor .ad{

                              >

                              > > padding:8px 0;}

                              >

                              > > #ygrp-sponsor .ad #hd1{

                              >

                              > >

                              >

                              > font-family: Arial;font- weight:bold; color:#628c2a; font-size:

                              100%;line- height:122% ;}

                              >

                              > > #ygrp-sponsor .ad a{

                              >

                              > > text-decoration: none;}

                              >

                              > > #ygrp-sponsor .ad a:hover{

                              >

                              > > text-decoration: underline; }

                              >

                              > > #ygrp-sponsor .ad p{

                              >

                              > > margin:0;}

                              >

                              > > o {font-size:0; }

                              >

                              > > .MsoNormal {

                              >

                              > > margin:0 0 0 0;}

                              >

                              > > #ygrp-text tt{

                              >

                              > > font-size:120% ;}

                              >

                              > > blockquote{margin: 0 0 0 4px;}

                              >

                              > > .replbq {margin:4;}

                              >

                              > > -->

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > >

                              >

                              > > Once upon a time there was 1 GB storage in your inbox. To know

                              >

                              > the happy ending go to

                              >

                              > http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html

                              >

                              > >

                              >

                              > > [Non-text portions of this message have been removed]

                              >

                              > >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              > <!--

                              >

                              > #ygrp-mlmsg {font-size:13px; font-family: arial, helvetica, clean,

                              sans-serif;}

                              > #ygrp-mlmsg table {font-size:inherit; font:100% ;}

                              > #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,

                              clean, sans-serif;}

                              > #ygrp-mlmsg pre, code {font:115% monospace;}

                              > #ygrp-mlmsg * {line-height: 1.22em;}

                              > #ygrp-text{

                              > font-family: Georgia;

                              > }

                              > #ygrp-text p{

                              > margin:0 0 1em 0;}

                              > #ygrp-tpmsgs{

                              > font-family: Arial;

                              > clear:both;}

                              > #ygrp-vitnav{

                              > padding-top: 10px;font- family:Verdana; font-size: 77%;margin: 0;}

                              > #ygrp-vitnav a{

                              > padding:0 1px;}

                              > #ygrp-actbar{

                              > clear:both;margin: 25px

                              0;white-space: nowrap;color: #666;text- align:right; }

                              > #ygrp-actbar .left{

                              > float:left;white- space:nowrap; }

                              > .bld{font-weight: bold;}

                              > #ygrp-grft{

                              > font-family: Verdana;font- size:77%; padding:15px 0;}

                              > #ygrp-ft{

                              > font-family: verdana;font- size:77%; border-top: 1px solid #666;

                              > padding:5px 0;

                              > }

                              > #ygrp-mlmsg #logo{

                              > padding-bottom: 10px;}

                              >

                              > #ygrp-vital{

                              > background-color: #e0ecee;margin- bottom:20px; padding:2px 0 8px 8px;}

                              > #ygrp-vital #vithd{

                              >

                              font-size:77% ;font-family: Verdana;font- weight:bold; color:#333; text-transform: uppercase; }

                              > #ygrp-vital ul{

                              > padding:0;margin: 2px 0;}

                              > #ygrp-vital ul li{

                              > list-style-type: none;clear: both;border: 1px solid #e0ecee;

                              > }

                              > #ygrp-vital ul li .ct{

                              >

                              font-weight: bold;color: #ff7900;float: right;width: 2em;text- align:right; padding-right: .5em;}

                              > #ygrp-vital ul li .cat{

                              > font-weight: bold;}

                              > #ygrp-vital a {

                              > text-decoration: none;}

                              >

                              > #ygrp-vital a:hover{

                              > text-decoration: underline; }

                              >

                              > #ygrp-sponsor #hd{

                              > color:#999;font- size:77%; }

                              > #ygrp-sponsor #ov{

                              > padding:6px 13px;background- color:#e0ecee; margin-bottom: 20px;}

                              > #ygrp-sponsor #ov ul{

                              > padding:0 0 0 8px;margin:0; }

                              > #ygrp-sponsor #ov li{

                              > list-style-type: square;padding: 6px 0;font-size: 77%;}

                              > #ygrp-sponsor #ov li a{

                              > text-decoration: none;font- size:130% ;}

                              > #ygrp-sponsor #nc {

                              > background-color: #eee;margin- bottom:20px; padding:0 8px;}

                              > #ygrp-sponsor .ad{

                              > padding:8px 0;}

                              > #ygrp-sponsor .ad #hd1{

                              >

                              font-family: Arial;font- weight:bold; color:#628c2a; font-size: 100%;line- height:122% ;}

                              > #ygrp-sponsor .ad a{

                              > text-decoration: none;}

                              > #ygrp-sponsor .ad a:hover{

                              > text-decoration: underline; }

                              > #ygrp-sponsor .ad p{

                              > margin:0;}

                              > o {font-size:0; }

                              > .MsoNormal {

                              > margin:0 0 0 0;}

                              > #ygrp-text tt{

                              > font-size:120% ;}

                              > blockquote{margin: 0 0 0 4px;}

                              > .replbq {margin:4;}

                              > -->

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              >

                              > Once upon a time there was 1 GB storage in your inbox. To know

                              the happy ending go to

                              http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html

                              >

                              > [Non-text portions of this message have been removed]

                              >














                              <!--

                              #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
                              #ygrp-mlmsg table {font-size:inherit;font:100%;}
                              #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
                              #ygrp-mlmsg pre, code {font:115% monospace;}
                              #ygrp-mlmsg * {line-height:1.22em;}
                              #ygrp-text{
                              font-family:Georgia;
                              }
                              #ygrp-text p{
                              margin:0 0 1em 0;}
                              #ygrp-tpmsgs{
                              font-family:Arial;
                              clear:both;}
                              #ygrp-vitnav{
                              padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
                              #ygrp-vitnav a{
                              padding:0 1px;}
                              #ygrp-actbar{
                              clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
                              #ygrp-actbar .left{
                              float:left;white-space:nowrap;}
                              .bld{font-weight:bold;}
                              #ygrp-grft{
                              font-family:Verdana;font-size:77%;padding:15px 0;}
                              #ygrp-ft{
                              font-family:verdana;font-size:77%;border-top:1px solid #666;
                              padding:5px 0;
                              }
                              #ygrp-mlmsg #logo{
                              padding-bottom:10px;}

                              #ygrp-vital{
                              background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
                              #ygrp-vital #vithd{
                              font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
                              #ygrp-vital ul{
                              padding:0;margin:2px 0;}
                              #ygrp-vital ul li{
                              list-style-type:none;clear:both;border:1px solid #e0ecee;
                              }
                              #ygrp-vital ul li .ct{
                              font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
                              #ygrp-vital ul li .cat{
                              font-weight:bold;}
                              #ygrp-vital a {
                              text-decoration:none;}

                              #ygrp-vital a:hover{
                              text-decoration:underline;}

                              #ygrp-sponsor #hd{
                              color:#999;font-size:77%;}
                              #ygrp-sponsor #ov{
                              padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
                              #ygrp-sponsor #ov ul{
                              padding:0 0 0 8px;margin:0;}
                              #ygrp-sponsor #ov li{
                              list-style-type:square;padding:6px 0;font-size:77%;}
                              #ygrp-sponsor #ov li a{
                              text-decoration:none;font-size:130%;}
                              #ygrp-sponsor #nc {
                              background-color:#eee;margin-bottom:20px;padding:0 8px;}
                              #ygrp-sponsor .ad{
                              padding:8px 0;}
                              #ygrp-sponsor .ad #hd1{
                              font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
                              #ygrp-sponsor .ad a{
                              text-decoration:none;}
                              #ygrp-sponsor .ad a:hover{
                              text-decoration:underline;}
                              #ygrp-sponsor .ad p{
                              margin:0;}
                              o {font-size:0;}
                              .MsoNormal {
                              margin:0 0 0 0;}
                              #ygrp-text tt{
                              font-size:120%;}
                              blockquote{margin:0 0 0 4px;}
                              .replbq {margin:4;}
                              -->








                              Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

                              [Non-text portions of this message have been removed]
                            Your message has been successfully submitted and would be delivered to recipients shortly.