Maintaining Session Across Relay Domain?

Apr 18, 2010

I'm building a payment page in asp.net, however the page where you order your items is run in HTTP (non-secure) on my domain.

When redirecting the user to the payment site, I have to go through a different domain (my payment provider, from whom I borrow the SSL certificate), so my payment url ends up like [URL]

Now the problem is my session is lost, but I store the order in session, so I desperately needs it.

Can I somehow send the SessionID in querystring, and restore the session from it - or do I need to stuff the entire order into querystring ? (Not too certain it'll fit though, it's rather long)

View 2 Replies


Similar Messages:

Security :: Getting A Relay Error. "The Server Will Not Relay Mail For Foreign Domains".

Sep 13, 2010

I have coded my application to send mail and it works fine some of the time depending on the to or from address specified in the particular message but at other times I am getting a relay error.

"The server will not relay mail for foreign domains".

I HAVE authenticated myself to the mail server using a valid username and password in the code.Basically here is the setup. Our site is hosted overseas in the states with one company, our nameservers are also in the states but with our company not the hosting company. Our mail server is local (that is here in New Zealand). I'm pretty sure that the code is right because I've read dozens of posts on here which point to coding errors and it seems to be right.

Do I need MX records or anything like that in some place?

View 1 Replies

State Management :: How To Keep Current User Session When Redirected To Sub Domain From Main Domain

Feb 17, 2011

I have also installed SSL on a subdomain. I have put payment page under this sub domain.

View 4 Replies

How To Login On A Website And Access Another Page Maintaining The Session

Dec 14, 2010

Have a project where I need to access a RSS feed. The issue is this RSS feed, you need to be logged in as a user. They have a simple web form (login + password).

1) Post a web form with my login and password

2) Maintaining Session (w/successful login), do an additiional GET to retrieve the RSS feed.

I am doing this in an ASP.Net page so it all happens server side in VB.Net

View 1 Replies

Security :: Login Page And Maintaining User Through Out The Session

Apr 12, 2010

Once user enter credentials i want his name to be appear on top.User should be maintained through out the pages of website until he choose to sign out.And also diff users will have diff access to some parts of website, like only manager can delete the content.

View 1 Replies

C# - Share Session Between Domain And Sub-domain?

May 4, 2010

We're doing a whitelabelled version of our site, which will be hosted at foo.ourdomain.com.

However we need to ensure session is maintained between www.ourdomain.com and foo.ourdomain.com, as our SSL certificate only covers the main domain.

In practice this means we'll swap to the main domain on our payment pages, which run HTTPS, and then redirect back to the subdomain, after payment.

So the question is: How do we maintain the session when doing so ?

I've tried with <httpCookies domain=".ourdomain.com" /> in web.config to no avail :-(

Edit: Figured it out now, I lacked domain on my <forms /> tag to handle login properly.

View 1 Replies

Session Being Reset When Using Sub-domain?

Mar 8, 2010

I'm trying to use sub-domains in my ASP.NET website but I'm coming across a few problems with the session being reset.

I've edited my hosts file to have 'localhost', 'one.localhost' and 'two.localhost'. I can go to any of these URLs and do what I need to do and login to my system. The session mode is defined as follows in the web.config:

<sessionState cookieless="false" mode="SQLServer" timeout="300"
sqlConnectionString="Data Source=MyDatabase;user id=User1;password=pass"/>

I'm using SQLServer as the website will be ran as a webfarm.

What I'm finding is when I click something that causes a postback all the session is lost and a new session id is created, when this occurs my website is now 'localhost' rather than the logged in 'one.localhost' for example.

View 2 Replies

Get A Session / Cookie From Another Domain?

Jan 19, 2010

I've got a session/coockie from a phpbb forum. But i use in the website asp.net (the website has a different url and domain then the forum).

Can i get the session/coockie from the phpbb forum in the asp.net website?

View 1 Replies

Web Forms :: How To Maintain Session Between Domain And Subdomain

Dec 7, 2012

how can i maintain session between domain and subdomains.

i have a master page in my domain say [URL] which collects username and then i redirect it to subdomain.mydomain.com, then how can i retrieve the value from the session in the subdomain Master page.

View 1 Replies

State Management :: Clear Session In Multi Domain?

May 24, 2010

I have multiple sites with main and subdomain. all doing one same method for the login. login is done with the multi domain cookie but there is problem with the logout. I'm using cookie and session for that state.

When ever I logout form the any domain. I should logout form the all domain.

(Like yahoo or google)

As per my method , My all domain have logout page which has code

[Code]....

and main site(www.domain.com) have
[Code]....

So what can I change in this code to do the Logout process for the all subdomains.

View 3 Replies

Requirement Of Session Object View State - Application Domain?

May 17, 2010

actually i got confused in session object,view state,application domain, can u tell me where i have to use these object. can u define some sort of condition in which session object must used & view state must used & diffrence of thses object where we can only use session & where i we can only use view state

View 2 Replies

State Management :: How To Disable Session Sharing Among Different Applications With Same Domain

Jul 14, 2010

I have 2 applications App1 and App2 on same domain, both with Forms authentication, each using a different database instance for authentication.

First, I open a browser with application www.mydomain.com/App1 and log on.

After that, when I open another instance of the same browser with application www.mydomain.com/App2 and log on, first browser loses session and goes back to login page.

I need each application on same domain to have its own session so that both can stay logged on.

View 2 Replies

Getting Error / Mailbox Unavailable. The Server Response Was: 5.7.1 Unable To Relay

Mar 29, 2011

got this error when sending a mail...

Mailbox unavailable. The server response was: 5.7.1 Unable to relay

View 3 Replies

Web Forms :: Go Daddy Relay-hosting.secureserver.net SMTP Not Reliable?

Mar 9, 2011

I use Go Daddy's relay-hosting.secureserver.net for my SMTP client. I've coded it to use the user's email address as the "From:" address, in order to develop an outlook rule that sends a confirmation email to the user, informing them that their input was received. But using Go Daddy's relay-hosting.secureserver.net as an SMTP client prevents this from happening if the user has an email from "@yahoo.com", "@gmail.com", "@hotmail.com" etc, etc.

We did some research and found that this relay hosting server is not always reliable. We've had problems where users have submitted input, but the input was never received.Is there anything else I can look into that will send email via my ASP.net page?

[Code]....

View 4 Replies

Mailbox Unavailable. The Server Response Was: 5.7.1 Unable To Relay For (email Address) / How To Fix This Error

Jan 8, 2010

i have a form which sends an email I'm getting error

Mailbox unavailable. The server response was: 5.7.1 Unable to relay

View 3 Replies

Web Forms :: Mailbox Unavailable. The Server Response Was: 5.7.1 Unable To Relay / How To Rectify This Error

May 7, 2010

Now I'm developing the autogenerated mail program in my web application system.

And there is my code :

[Code]....

My environment is using Microsoft Exchange Sever and if I send my company address each other, there is no problem.

(e.g: my email addrss is [URL] and receipent address is [URL]

But when I send to [URL] I mean any other external mail address, I cannot send... the error message appears like this :

[code]...

View 4 Replies

Windows Authentication - Run Application Under Domain Account Without Joining The Domain?

Sep 28, 2010

My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.

View 1 Replies

The Trust Relationship Between The Primary Domain And The Trusted Domain Failed

Aug 3, 2010

We have a ASP.NET site that partially depends on forms authentication for login credentials, however the implementation of IPrincipal is completely custom.

But, when running the site on a particular server (which is somewhat semi-hardened when it comes to security), the app crashes when invoking IPrincipal.IsInRole() with the following messsage:

System.SystemException: The trust relationship between the primary domain and the trusted domain failed.

This indicates a communication error between the web-server and the DC, however since our application doesn't at all utilizes Windows authentication, I don't see why it needs to communicate with the DC.

This is my implementation:

[code]...

EDIT:

I was finally enable to reproduce this error on my dev-machine (i revoked my machine from the DC yesterday, but didn't reproduce it until today)

HttpContext.User is actually a WindowsPrincipal by default it seems, and the error in my code was that I only replace it with CustomPrincipal upon login. Hence, unathenticated users still get the WindowsPrincipal which then fails horribly if you have trust issues on your AD.

I tried changing the default principal by invoking this on appstart

AppDomain.CurrentDomain.SetPrincipalPolicy( PrincipalPolicy.NoPrincipal);

But this doesn't seem to kick in. How do I change the default Principal in ASP.NET?

View 1 Replies

C# - Sharepoint Retrieving Username Without Domain Or Programmatically Removing Domain

Aug 16, 2010

Im returning the username from sharepoint site as a string. This is done successfully with the below code but I also get the domain with it. How can I only return the username and not the domain either through sharepoint or programmatically removing it? domain/username

[Code]....

View 3 Replies

Security :: Impersonation With Domain Account Without Joining The Domain?

Sep 28, 2010

My feeling says it's not posible but anyway I am curious if there is at least a workaround for accomplish this.Basically I am working at my client site and my machine is not connected to the domain.What I want to do is running a web application locally under a domain account, and using the webdev server.The webapp uses the default authentication, windows authentication that is.I tried using impersonation with domainuser & password but I got the following error Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.I have to mention that the username and the password are correct.

View 2 Replies

How To Autheticate A Domain User From The Web Application Hosted On Another Domain

Jul 28, 2010

I have two domain servers X and Y.My Asp.net Web application is hosted on Domain X.But my scope is required to authorize the user of Domain Y on the Web application hosted on Domain X server.I am using Windows Authetication mode in application

View 2 Replies

State Management :: Sharing Cookies Between Domain / Sub Domain?

Jul 28, 2010

I have a main domain "mydomain.com" and then a sub domain "forums.mydomain.com". If a user visits "forums.mydomain.com" without being logged in, they are redirected to "mydomain.com/login.aspx".

The two scenarios are:

If they are redirected to the login page with "mydomain.com/login.aspx?ReturnUrl=http://forums.mydomain.com", then they are succesfully logged into the forums but NOT the main site.

If they are simply redirected to the login page with "mydomain.com/login.aspx" with no returnUrl, they are correctly logged into both the main site and the forums.

View 2 Replies

Send Email Doesn't Work "The Server Response Was: 5.7.1 EMAILADDRESS: Relay Access Denied"

Mar 5, 2010

I am trying to send an email but it's not working, i get the following error:- Transaction failed. The server response was: 5.7.1 EMAILADDRESS: Relay access denied See where it gives EMAILADDRESS is the actual email address i want it to be sent to. The web url is below:- [URL] If you look at the bottom right "Parents get in touch" section. Try filling in the form and submitting it. You will get an error. Now just so you know the website is currently running on a test domain on DiscountASP and i was thinking maybe when the website is live the email will start working? ....

View 4 Replies

Security :: Unable To Log In On Domain Which Redirects To Another Domain?

Jul 23, 2010

I have a domain: http://www.mydomain.com. This domain is redirected to http://mydomain.anotherDomain.com.

I user forms authorization, so when the user navigates to Default.aspx he is redirected to Login.aspx. Pretty standard stuff.

On FireFox the user can log in on both on http://www.mydomain.com and http://mydomain.anotherDomain.com.

But with Explorer http://www.mydomain.com doesn't work. I only get the Login.aspx page.

Can it have anything to do with that on http://www.mydomain.com I can't see the filename ('Default.aspx', 'Login.aspx')? How can I enable so the filename is included in the redirected domain?

View 3 Replies

Security :: How To Set IIS To Handle Both Domain And Non-domain Users

Jan 27, 2011

I have an intranet web application. There are 2 user groups, group A belongs to the domain and group B does not. If I set the IIS to enable anonymous access, Request.ServerVariables("LOGON_USER") always return nothing. If I disable anonymous access and set Integrated Windows authenication, a Windows login prompt will come up if group B's users want to access the website.

How can I setup IIS so that when domain user access the website, it will direct to the main page with Session("user_name") = Request.ServerVariables("LOGON_USER"). If a user is not a domain user, the website will direct him/her to a login.aspx instead of having the Windows authenication prompt, then set Session("user_name") = txtUserName.Text, and finally redirect to the website main page ?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved