close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Login Redirect to wrong page

Thread began 2/29/2016 2:11 pm by Kumel | Last modified 2/29/2016 6:44 pm by Ray Borduin | 190 views | 3 replies |

Kumel

Login Redirect to wrong page

I have many pages that can be opened after login. After once user logs in he is taken to dashboard.php from login page. But all of a sudden it redirects to wrong page which i don't want anytime anyone to be redirected to. Its a jquery based page(job-notification.php) which works on background for data retrieval on dashboard page(dashboard.php).. When i click logout & login using different id then it still takes me to job-notifcation.php.

But i crossed checked login.php page sucessredirect is dashboard.php

Is the jquery causing problem to this?

pages attached.

At login.php "successRedirect" => "latest/dashboard.php?loggedIn=1",
Its correct cause dashboard.php page is on folder called latest & also is job-notification in latest folder. (FYI)

Attached Files
Archive.zip
Sign in to reply to this post

Ray BorduinWebAssist

The only place I see a reference to job-notification.php is on the dashboard in the javascript on line 219. If you remove that script does it still redirect to that page? I'm thinking that has to be doing it for some reason.

If you just type in the url: latest/dashboard.php?loggedIn=1 does it take you to the page? I'd debug it that way. It doesn't appear to be an issue with the login code.

Sign in to reply to this post

Kumel

i added this on login.php start:

<?php
@session_start();
?>
<?php
@session_start();
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>



seems fine now.. No problem with it right?

Sign in to reply to this post

Ray BorduinWebAssist

No problem with that code. I'm confused about why that helped, but I guess if it works go with it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...