5 Replies - 1050 Views - Last Post: 19 June 2014 - 02:39 AM Rate Topic: -----

#1 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Is forms authentication possible in this setup?

Posted 29 May 2014 - 02:49 AM

The concept is A website within a website... Technically, it is only one website, but there are different folders (for different sites) with separate login pages.

You may be wondering why I am doing that.

Let's call it a parent website with children sites.

The user will first login at the parent site. He will have tasks that require to use a child site (of course, he needs to login separately at the child site).

The different children sites and the parent sites will have different user roles.

Is it possible to place a form authentication in this setup? If it is, how can I implement it?

I have not really used forms authentication before. I want to implement it in this site but I have no idea how. Can someone help me?

This post has been edited by November-06: 29 May 2014 - 02:51 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Is forms authentication possible in this setup?

#2 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,499
  • Joined: 16-March 11

Re: Is forms authentication possible in this setup?

Posted 29 May 2014 - 08:56 AM

It is possible because each sub folder would have it's own web config which you can place a different connection string if you so choose.

Using Forms Authentication

If you have any errors let me know.
Was This Post Helpful? 0
  • +
  • -

#3 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Re: Is forms authentication possible in this setup?

Posted 06 June 2014 - 05:04 AM

Thanks trevster.

I am wondering... Is it possible to create this with unencrypted cookies? I need to create a deliberately vulnerable website. I need to have cookies with enencrypted data.

If cookies created with ASP.NET's forms authentication are automatically encrypted, I am planning to create my own cookies but still implement role access authentication to folders.

How should I go about this?
Was This Post Helpful? 0
  • +
  • -

#4 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Re: Is forms authentication possible in this setup?

Posted 09 June 2014 - 03:09 AM

A follow up on this...

Is it possible to create separate global.asax in the folders for the sub-websites?
Was This Post Helpful? 0
  • +
  • -

#5 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,499
  • Joined: 16-March 11

Re: Is forms authentication possible in this setup?

Posted 09 June 2014 - 06:24 PM

What cookies are you trying to manipulate exactly?

I do not believe it is possible to place separate global.asax in the folders for the sub websites as global.asax applies to the whole application in question.
Was This Post Helpful? 0
  • +
  • -

#6 November-06  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 391
  • Joined: 04-January 11

Re: Is forms authentication possible in this setup?

Posted 19 June 2014 - 02:39 AM

I've decided to use forms authentication for the main site and manually do the authentication in the sub sites using sessions or cookies depending on what I need.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1