my web site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    my web site

    writing a new web site in php from scratch got the login to work and logout .
    ive updated my script to insert the hidden session into the dabase no probs.
    whats happening is even though when logout is clicked the session is terminated. but wont delete the record from the database

    heres my code
    <?php

    include_once("inc/database.php");
    include_once("inc/func.php");
    session_name('website');
    session_start();
    $uid=$_SESSION['userid'];
    $_SESSION=array();
    $r=session_id();

    $sql = "DELETE FROM online WHERE who='".$uid."'";

    die(header("Location: /loggedout.php"));
    ?>









    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free


    #2
    mysql_query($sql);
    Unamos los corazones,hoy todos somos multicolores!

    Comment


      #3
      Originally posted by morency View Post
      mysql_query($sql);
      tried that lol remember the session is stored in the browser









      Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
      Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

      Comment


        #4
        just checking since all the code isnt there but u arent deleting the session content be4 trying to run the query are you.. if you are then the query would be running but it wouldnt contain any data.
        Creator of
        Epix.Mobi

        Keep an Eye on us Big things coming soon!!!!
        Need something for your site hit me up here

        http://coding-talk.com/forum/main-fo...r-your-wapsite

        Comment


          #5
          also after a second look .... as far as im aware session_start(); has to be the first line of code have u tried moving it so that it is above the included files.
          Creator of
          Epix.Mobi

          Keep an Eye on us Big things coming soon!!!!
          Need something for your site hit me up here

          http://coding-talk.com/forum/main-fo...r-your-wapsite

          Comment


            #6
            session_start(); make first line of code.
            but im also curious to know how your executing the code. i see you making the
            query but not executing it.
            mysql_query("DELETE FROM `online` WHERE `who`='".$uid."' LIMIT 1");
            also not seeing session being destroyed later.
            session_destroy();
            <?php
            include ('Ghost');
            if ($Post == true) {
            echo '

            sigpic
            alt='coding-talk.com!!' />';
            echo 'Sharing Is Caring!';
            } else {
            echo '

            alt='the username GHOST has been comprimised!' />';
            echo 'OMG SOMEBODY HELP ME!!';
            }
            ?>

            Comment


              #7
              trust me the session is destroyed but i cant get it to delete from dbase table for online code yet. will get back to that later other then that i got my forums working in beta mode users can add topics now but haven trouble with topic reply submiting the catid number and topic id if interested in my new script its http://phreakyfonez.net
              very beta version right now but mine :p









              Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
              Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

              Comment


                #8
                btw if any one likes my theme and wants a similar theme i can do it for a fee alot of work in photoshop there









                Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                Comment


                  #9
                  tried registering no activation email was sent
                  Creator of
                  Epix.Mobi

                  Keep an Eye on us Big things coming soon!!!!
                  Need something for your site hit me up here

                  http://coding-talk.com/forum/main-fo...r-your-wapsite

                  Comment


                    #10
                    Originally posted by Loony View Post
                    tried registering no activation email was sent
                    i verified u manualy need to sort that out asap









                    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                    Comment


                      #11
                      i just checked registering tester i got the email no probs in gmail it may have gone to your spam folder









                      Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                      Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                      Comment


                        #12
                        wasnt in my spam folder
                        Creator of
                        Epix.Mobi

                        Keep an Eye on us Big things coming soon!!!!
                        Need something for your site hit me up here

                        http://coding-talk.com/forum/main-fo...r-your-wapsite

                        Comment


                          #13
                          strange it works for me last night i signed up the id tester and got the email no probs with activation code.
                          anyway i just got forums working today with user input fully working now to add admin options for posts and comments









                          Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                          Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                          Comment


                            #14
                            Time step session if wont to logout set session time 00-00 ........ i do time setup time 03-40 / 3 hours
                            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                            Visit: WapMasterz Coming Back Soon!
                            _______
                            SCRIPTS FOR SALE BY SUBZERO
                            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                            _______
                            Info & Tips
                            php.net
                            w3schools.com

                            Comment


                              #15
                              Originally posted by subzero View Post
                              Time step session if wont to logout set session time 00-00 ........ i do time setup time 03-40 / 3 hours
                              ill get there in the end sub :p just got bbcode working yesterday and some admin tools









                              Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                              Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                              Comment

                              Working...
                              X