Skip to content

Commit de586d8

Browse files
committed
kb(persistanceframework): clear temp files
1 parent 58ab222 commit de586d8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Clean the temporal files in App_Data folder created by Telerik Persistence Framework
3+
description: Learn how to delete the temporary files generated by the Telerik RadPersistenceFramework control in the App_Data folder automatically.
4+
type: how-to
5+
page_title: Delete the temporary files located in App_Data folder created by RadPersistenceFramework
6+
slug: persistenceframework-clean-temp-files
7+
position:
8+
tags:
9+
ticketid: 1577596
10+
res_type: kb
11+
---
12+
13+
## Environment
14+
<table>
15+
<tbody>
16+
<tr>
17+
<td>Product</td>
18+
<td>RadMenu for ASP.NET AJAX</td>
19+
</tr>
20+
</tbody>
21+
</table>
22+
23+
24+
## Description
25+
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.
26+
27+
## Solution
28+
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:
29+
30+
* Implement a reset logic like demonstrated: [PersistenceFramework Overview demo](https://demos.telerik.com/aspnet-ajax/persistence-framework/examples/overview/defaultcs.aspx)
31+
* Reset the state of the control and then save the state again: [Reset RadGrid state]({%slug grid-reset-state%})
32+
* Delete manually the saved state files inside the ~/App_Data using the [System.IO.Directory](https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles?view=netframework-4.8) and [System.IO.File](https://docs.microsoft.com/en-us/dotnet/api/system.io.file?view=net-6.0) API
33+
* 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]({%slug persistenceframework/functionality/-custom-storage-provider%}).
34+
35+

0 commit comments

Comments
 (0)