Clean the temporal files in App_Data folder created by Telerik Persistence Framework
Environment
Product | RadMenu for ASP.NET AJAX |
Description
Learn how to delete the temporary files generated by the Telerik RadPersistenceFramework control in the App_Data folder automatically. Of course, you can delete them manually since they are identified with the ID of the session, but if the user closes the browser without pressing the end of session button, the file remains generated.
Solution
RadPersistenceManager does not have built-in functionality to reset its saved settings, but I can suggest you several possible approaches to achieve such a result:
-
Implement a reset logic like demonstrated: PersistenceFramework Overview demo
-
Reset the state of the control and then save the state again: Reset RadGrid state
-
Delete manually the saved state files inside the ~/App_Data using the System.IO.Directory and System.IO.File API
-
Implement a custom Storage provider, in which you can store the saved setting in the desired location (in a database or in a cookie) and delete/change them as per your application needs: Custom Storage Provider.