I only used the redirect as a simple example, not as a representation of what's web 2.0 or not. ;)
On Feb 14, 3:59 am, EugeneS <[email protected]> wrote: > location.href (simply redirection) is so called web 2.0 ? :) > > web 2.0 is like a google mail where no redirection at all and all the > content loaded dynamically. > > simplest realization can look like: > 1) you will have one main script lets name it manager.php to this > script you will send different values, and depending on them our > manager will include different modules and return HTML which you will > insert into some "div" > 2) every module as usually will check if user logged in or not lets > say depending on session > 2.1) if logged in then show module content etc > 2.2) if not then return lets say login form ... > > this is the basic concept which will work without page refreshing/ > redirecting etc ... > > On Feb 14, 1:07 pm, phicarre <[email protected]> wrote: > > > @james: I forgot to answer to your question ... what I want ? "web2.0 > > style" with a solution as you suggested it > > > On 14 fév, 12:03, phicarre <[email protected]> wrote: > > > > OK. I understood now. Thank's > > > > On 13 fév, 20:07, James <[email protected]> wrote: > > > > > Okay, here's a simple way to understand it. Suppose in your login.php, > > > > if the user login is successful, you have login.php echo '1'. If not, > > > > echo something else, like '0'. > > > > > This response will become stored in the 'msg' variable in your success > > > > function in your ajax. > > > > > success: function(msg) > > > > { > > > > if (msg == '1') window.location.href = window.location.href; // > > > > refresh page > > > > else alert('You failed'); > > > > > }, > > > > > On Feb 13, 8:50 am,phicarre<[email protected]> wrote: > > > > > > I tried by doing header("Location:welcome.php") but the page is not > > > > > displayed ??? > > > > > The first module is waiting for an answer. This is probably that > > > > > doesn't run ??? > > > > > Show me how you did it .... > > > > > > On 13 fév, 19:45, Ashit Vora <[email protected]> wrote: > > > > > > > Hey, why dont u redirect to Welcome.php page from the page where u r > > > > > > authenticating the user. > > > > > > > eg. suppose you make ajax request to auth.php for validation, If > > > > > > validation succeed, redirect to welcome.php (and the ajax request > > > > > > which was waiting for response will die) and if failed, write > > > > > > response > > > > > > back and it will be received by Ajax function waiting for it. > > > > > > > I 'm doing this way. > > > > > > > and also... If you check session on your welcome.php, and only allow > > > > > > user to continue if the user is validated else redirect back to > > > > > > login > > > > > > page than it doesnt matter even if user gets to know about your > > > > > > welcome.php page > > > > > > > If I understood your problem properly than this should help you. > > > > > > > Thanks :) > > > > > > > On Feb 13, 10:30 am,phicarre<[email protected]> wrote: > > > > > > > > The question was "How to call welcome.php from my jquery script > > > > > > > in a > > > > > > > secured manner ?" because welcome.php is visible from the client > > > > > > > side. > > > > > > > > On 13 fév, 13:19, Rene Veerman <[email protected]> wrote: > > > > > > > > > Rene Veerman wrote: > > > > > > > > > // $pwh = md5 > > > > > > > > > ($users->rec["user_password_hash"] . > > > > > > > > > $challenge); > > > > > > > > > Ehm, best to use Either sha256 OR md5 for BOTH fields ofcourse > > > > > > > > ;) > > > > > > > > It was a hasty paste. > >

