Filed: Event Id 3019 Redirector Failed @ Thu, 29 Jul 2010 01:07:25 +0100


Step 1.
make changes that fit your setup. copy and paste this into the file you are protecting where you want it to show up on the page. Make sure it is all on one line after you paste it.
<a href="http://www.yourwebsite.com/vault/secure_data.php?logout=1" onclick="javascript:location.replace(this.href); event.returnValue=false; ">Logout</a>
Step 2.
open the password_protected.php file
Look for the header on the next line. it is not far down from the top of the password_protect.php file.
##################################################################
# SETTINGS START
##################################################################
You only need to make changes to the following sections. There are other sections in there but they require no changes.
1. change the web address to where you want to redirect the user too when they logout.
Note: It does not matter what web address you direct them too.
// User will be redirected to this page after logout
define('LOGOUT_URL', 'http://www.example.com'); <--------- change to the web address you want to redirect the user to.
2 make sure the TIMEOUT_MINUTES' is 1 by default it is usually 0
// time out after NN minutes of inactivity. Set to 0 to not timeout
define('TIMEOUT_MINUTES', 1); , <------------- make sure this is 1
3. make sure TIME_OUT_ACTIVITY is set to false by default it is usually true
// This parameter is only useful when TIMEOUT_MINUTES is not zero
// true - timeout time from last activity, false - timeout time from login
define('TIMEOUT_CHECK_ACTIVITY', false); <------ Make sure this is set this to false
Save your changes and upload your new PASSWORD_PROTECT.PHP file to your webserver.
Similar:
- Disable Submit button onclick in ModalPopupExtender Hi, We have a ModalPopupExtender in which there is a Submitbutton. Once this button is clicked, this button should be disabled (ormade invisible) to avoid multiple clicks. I tried the following, but the server-side code is not getting called if i do this. Please suggest. OnClientClick="fnDisable(this);" <script type="text/javascript"> function fnDisable(object)...
- Issue with FileUpload control while clicking Submit Button I have a page with 3 controls 1. File Upload Control (ID=FileUpload1)<asp:FileUpload ID="FileUpload1" runat="server"></asp:FileUpload> 2. Link Button Control (ID=lnkBrowse)<a href="javascript:document.getElementById('FileUpload1').click();" id="lnkBrowse" runat="server">Browse</a> 3. Button Control (to Save the File)<asp:Button ID="BtnUpload" Text="Upload" runat="server" OnClick="BtnUpload_Click"> Here when the link button is clicked I am raising the Fileupload click event using Javascript as...
- checking if url is up and working, if it is to redirect to that url itself else if not working to redirect to another url public static bool UrlIsValid(string smtpHost) { bool br = false; try { IPHostEntry ipHost = Dns.Resolve(smtpHost); br = true; } catch (SocketException se) { br = false; } return br; } private void Page_Load(object sender, EventArgs e) { string url = "http://www.google.com"; bool str=false; if (UrlIsValid(url)) { str = true;...
- how to redirect on form on submit Hi all,i am not able to redirect the page on form submit after validation ..please see my code. <script type="text/javascript" language="javascript">function copyto(){ var frm=document.form1; /*if (window.console || console.firebug) { alert('Deactivate Firebug to continue'); return false; }*/ if(document.getElementById("<%=reference_no.ClientID%>").value=="") { alert("Please enter reference_no !"); document.getElementById("<%=reference_no.ClientID%>").focus(); return false; } ...
- CustomValidator not triggered in formview submit, but it is working at normal submit button. What should i do? Hi, I wanted to used customValidator in formview. Tried the codes below, but it is not trigger if putting the codes in the formview with submit button. But i move it to a normal page with submit button it is working. What should I do in formview submit? Thanks. Will...
- How To Create Nested Form in Asp.net I have a simple website and I use masterPage for designing my template. everythings work fine, but when I add a Custom (google) Search Box in it my pages correpted. infact asp does not support Nested Form and as you all know google use a simple form to get queries...
- Problems breaking an .htaccess redirect out of an infinite loop So I have asked for help over at my weblog, scoured the internet, and pored over the examples you all have provided on here before, and I still cannot find an answer that works. Simply put, I am trying to take all traffic referred to my site from Site A,...
- Why new window is opening when Click submit button in popup? Hi I Opening a popup like this: function openPopup() { RetVal = window.showModalDialog("chooseProducts.aspx", "", "dialogHeight: 330px; dialogWidth: 450px;scroll:no"); } In the popup, when I click this button a new window is opening (with the popup contain): <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="savingImpr" OnClientClick="window.close();"/> I try to close the current popup before...
- New to ASP.Net (Auto-Redirect Web Portal) Hi Guys, hope to find help here. Im totally new to asp.net and looked up many sites in the net up to now, but i didn't really found what I'm looking for. I want to build a web portal where every user from our network can connect to and the...
- javascript : submit for via link + “retrieving value of submit button” When you submit a form via javascript, (it is already done), the value of Submit button is not set. I want this to be set for security reason and as good programming practice. I tried something like this, that should work but it does not. document.hiddenform.school.value = 'My School'; document.hiddenform.submitbutton.value...
Tags: google, google search, search text
This entry was posted
on Tuesday, July 27th, 2010 at 11:12 pm and is filed under dotnet, vb, vb.net.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.