0

I have some files I make available to the logged user to download, those ones can't be available if there is nobody logged in.

I check if the user is on of off by one session, Session["User"] for example

I am not using forms authentication.

any tips are valid, even you don't think it is the final solution, thanks

RollRoll
  • 8,133
  • 20
  • 76
  • 135
  • What about using windows auth or a custom authentication? – Tim Sep 22 '12 at 20:37
  • Couldn't you simply check Session to see if User has a value - if there's a value for User, they're logged on. Not exactly sure what it is you're looking for. – Tim Sep 22 '12 at 20:40
  • _I am not using forms authentication_ - then what does "logged in" mean in your app? – H H Sep 22 '12 at 20:41

1 Answers1

2

I would make the available using response/streaming instead a link to an actual file. Something as described here. Based on the logged user you can add it to the page, or not.

Community
  • 1
  • 1
Maarten
  • 22,527
  • 3
  • 47
  • 68