Hi,
I wonder if anyone knows how an application that employs remote
scripting/callbacks should deal with an authentication timeout during a
callback? At the moment my application just stops working until I refresh
the page and log in again. I'm not really sure what its going in - perhaps
the framework is trying to redirect the callback result to the login page?
Any ideas?
Thanks,
S 4 2507
what is the remote scripting callback mechanism? Are you just making the
HTTP calls yourself using javascript, or using something else?
If you are just doing this yourself, you probably need to have your calls
return a special code of some sort saying the session timed out. Then you
need to figure out the best way for your user to re-authenticate. Maybe you
need to pop open a login dialog for the user so that the user can log in
again, and then re-try to original remote call.
"Sosh" <so*******@some thing.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.phx.gbl... Hi,
I wonder if anyone knows how an application that employs remote scripting/callbacks should deal with an authentication timeout during a callback? At the moment my application just stops working until I refresh the page and log in again. I'm not really sure what its going in - perhaps the framework is trying to redirect the callback result to the login page?
Any ideas?
Thanks,
S
Hi Marina,
I'm using the callback framework provided with asp.net2, ie.
RaiseCallbackEv ent() with my stuff bolted on top of it. At the moment the
server does not seem to be replying to the callback at all when one is
requested after the timeout. At the moment the only way I can think of
dealing with this is having the browser refresh the page after a certain
time has elapsed without a callback response - but this is very messy.
Thanks.
"Marina" <so*****@nospam .com> wrote in message
news:ud******** ******@TK2MSFTN GP11.phx.gbl... what is the remote scripting callback mechanism? Are you just making the HTTP calls yourself using javascript, or using something else?
If you are just doing this yourself, you probably need to have your calls return a special code of some sort saying the session timed out. Then you need to figure out the best way for your user to re-authenticate. Maybe you need to pop open a login dialog for the user so that the user can log in again, and then re-try to original remote call.
"Sosh" <so*******@some thing.com> wrote in message news:OT******** ******@TK2MSFTN GP15.phx.gbl... Hi,
I wonder if anyone knows how an application that employs remote scripting/callbacks should deal with an authentication timeout during a callback? At the moment my application just stops working until I refresh the page and log in again. I'm not really sure what its going in - perhaps the framework is trying to redirect the callback result to the login page?
Any ideas?
Thanks,
S
ajax callback pages should not use forms authenication. you should pass a
private secuirty token as a parameter to the callback that your ajax page
checks. MS has not worked on this very much, so you are pretty much on your
own.
-- bruce (sqlwork.com)
"Sosh" <so*******@some thing.com> wrote in message
news:OT******** ******@TK2MSFTN GP15.phx.gbl... Hi,
I wonder if anyone knows how an application that employs remote scripting/callbacks should deal with an authentication timeout during a callback? At the moment my application just stops working until I refresh the page and log in again. I'm not really sure what its going in - perhaps the framework is trying to redirect the callback result to the login page?
Any ideas?
Thanks,
S
You're kidding!
What a pile of ****!
Thanks for the info though.
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . ajax callback pages should not use forms authenication. you should pass a private secuirty token as a parameter to the callback that your ajax page checks. MS has not worked on this very much, so you are pretty much on your own.
-- bruce (sqlwork.com)
"Sosh" <so*******@some thing.com> wrote in message news:OT******** ******@TK2MSFTN GP15.phx.gbl... Hi,
I wonder if anyone knows how an application that employs remote scripting/callbacks should deal with an authentication timeout during a callback? At the moment my application just stops working until I refresh the page and log in again. I'm not really sure what its going in - perhaps the framework is trying to redirect the callback result to the login page?
Any ideas?
Thanks,
S
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jay |
last post by:
I have authentication set for my site but I need one page to be an exception
case. Namely my forgot password page. How do I tell the webconfig file to
authenciate all pages except one page?
Thank You for any input on this matter!
|
by: Kris van der Mast |
last post by:
Hi,
I've created a little site for my sports club. In the root folder there are
pages that are viewable by every anonymous user but at a certain subfolder
my administration pages should be protected by forms authentication.
When I create forms authentication at root level it works but when I move my
code up to the subfolder I get this error:
Server Error in '/TestProjects/FormsAuthenticationTestingArea' Application.
|
by: Ed Henn |
last post by:
I'm having a problem with .NET Forms Authentication in a particular
application. It's not redirecting properly when my session is timed
out, seemingly only when I POST the page (i.e. click a form submit
button). If I try to GET a page after timeout (i.e. just picking a page
to visit from a menu), I am redirected to the login screen properly.
The browser error I'm getting in the POST example is "403.1 Execute
Access Forbidden". I...
|
by: Andy Fish |
last post by:
Hi,
I have an asp.net web app whereby I authenticate the user with Forms
Authentication and store details about him in the session. I want to be able
to catch an event when the users authentication period expires but I can't
see any way to do this.
Currently I have set the forms authentication expiry shorter than the
session expiry because I don't want a user logged in if his session details
are invalid. I was thinking of setting the...
|
by: Will Gillen |
last post by:
I have an ASP.NET application that is using Windows Integrated
Authentication (IIS) (as opposed to Forms Authentication).
When the user first logs into the application, IIS prompts the user for
their credentials.
Once they are "authenticated", their credentials remain active while their
web browser is open.
Now, I want the "authentication" to "timeout" in 3 minutes. This way if
they browse to another page after 3 minutes, they are...
| |
by: Maciek |
last post by:
Hi
When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET
2.0) in my application, I have recived this message:
-----------------------------------------------------------------------------------------------------------------
Unable to make the session state request to the session state server. Please
ensure that the ASP.NET State service is started and that the client and
server ports are the same. If the server is on a...
|
by: Nahrin |
last post by:
I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to
get the result back from server without postback the page. Problem is when
seesion expires or authentication times out, callback script does not do
anything and hangs. If I click another key which requires postback after
that, I get following error:
-----------
Failed to load viewstate. The control tree into which viewstate is being
loaded must match the control...
|
by: Simon Says |
last post by:
Hi,
I've a login page in which after authenticating it via the Oracle DB, I will
stored the user information into the Session. However, when the Session
timeout occurs, all of the user information will be lost.
I've tried doing a Reponse.Redirect call back to my login page whenever I
detected the Session is null, but I kept getting the exception saying "...
Redirect not all in Page Callback".
|
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== |
last post by:
I have a site which I secure with forms authentication. When the user's
sign on and hit one of the secure pages, I have this line in my code to
ensure that the browser does not cache the page; and someone cannot navigate
back to an cached image of the page in theory after the user has signed off.
Response.Cache.SetCacheability(HttpCacheability.NoCache);
This works all right, except when the user decides to use the browser's back...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |