mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Merge pull request #5875 from 560889223/fix/HttpRequestPlaceholder
HttpRequestPlaceholder should implement property AnonymousID
This commit is contained in:
@@ -158,6 +158,17 @@ namespace Orchard.Mvc {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create an anonymous ID the same way as ASP.NET would.
|
||||
/// Some users of an HttpRequestPlaceHolder object could expect this,
|
||||
/// say CookieCultureSelector from module Orchard.CulturePicker.
|
||||
/// </summary>
|
||||
public override string AnonymousID {
|
||||
get {
|
||||
return Guid.NewGuid().ToString("D", CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
|
||||
// empty collection provided for background operation
|
||||
public override NameValueCollection Form {
|
||||
get {
|
||||
|
Reference in New Issue
Block a user